Hello,
On Fri, Apr 16, 2010 at 11:05 AM, Timo Pelkonen <[email protected]> wrote:
> Now I've tried setting string (whatever it really is, luckily don't have to
> stress so much with those when using python :) ) 'icon' to:
>
> a) full path to png file (/home/user/.bookmarks.....)
> b) path that exists (~/.bookmarks/home-thumbnails/...)
> c) created the path documented and copied the same file there
> (~/.bookmarks/shortcut-thumbnails/...)
> d) plain file name (file lies in root of ~/.bookmarks/shortcut-thumbnails/)
>
>
> So now I need to know what I am doing wrong.
hd_shortcuts_add_bookmark_shortcut () copies the icon from another
place to ~/.bookmarks/home-thumbnails. I created a 160x96 PNG called
"asd.png" and saved it in "/" (copying to the 32GB ATM...).
I then ran the following:
import gobject #AFAIK, GType is inited. when importing gobject. AFAIK, anyway.
import ctypes
hd = ctypes.CDLL("libhildondesktop-1.so.0")
hd.hd_shortcuts_add_bookmark_shortcut ("asdadsgfdsa", "afddfsf", "/asd.png")
The shortcut then appeared on my desktop, with the icon.
Best Regards,
Faheem
_______________________________________________
maemo-developers mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-developers