Works perfectly, thanks a lot!<br><br>Ossipena / TimoP<br><br><div class="gmail_quote">2010/4/16 Timo Pelkonen <span dir="ltr"><<a href="mailto:peltsip@gmail.com">peltsip@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thanks for the info!<br><br>I'll test that soon.<br><br><br>Ossipena / TimoP<br><br><div class="gmail_quote">2010/4/16 Faheem Pervez <span dir="ltr"><<a href="mailto:trippin1@gmail.com" target="_blank">trippin1@gmail.com</a>></span><div>
<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello,<br>
<div><br>
On Fri, Apr 16, 2010 at 11:05 AM, Timo Pelkonen <<a href="mailto:peltsip@gmail.com" target="_blank">peltsip@gmail.com</a>> wrote:<br>
> Now I've tried setting string (whatever it really is, luckily don't have to<br>
> stress so much with those when using python :) ) 'icon' to:<br>
><br>
> a) full path to png file (/home/user/.bookmarks.....)<br>
> b) path that exists (~/.bookmarks/home-thumbnails/...)<br>
> c) created the path documented and copied the same file there<br>
> (~/.bookmarks/shortcut-thumbnails/...)<br>
> d) plain file name (file lies in root of ~/.bookmarks/shortcut-thumbnails/)<br>
><br>
><br>
> So now I need to know what I am doing wrong.<br>
<br>
</div>hd_shortcuts_add_bookmark_shortcut () copies the icon from another<br>
place to ~/.bookmarks/home-thumbnails. I created a 160x96 PNG called<br>
"asd.png" and saved it in "/" (copying to the 32GB ATM...).<br>
<br>
I then ran the following:<br>
<br>
import gobject #AFAIK, GType is inited. when importing gobject. AFAIK, anyway.<br>
import ctypes<br>
<br>
hd = ctypes.CDLL("libhildondesktop-1.so.0")<br>
hd.hd_shortcuts_add_bookmark_shortcut ("asdadsgfdsa", "afddfsf", "/asd.png")<br>
<br>
The shortcut then appeared on my desktop, with the icon.<br>
<br>
Best Regards,<br>
<font color="#888888">Faheem<br>
</font></blockquote></div></div></div><br>
</blockquote></div><br>