[maemo-developers] Integration with hildon desktop

From: Jeffrey Barish jeff_barish at earthlink.net
Date: Wed Oct 1 02:55:36 EEST 2008
Daniel Martin Yerga wrote:

> While I don't know as it's your .desktop file, I always add everyone of
> this parameters to .desktop files of my apps, perhaps some of them are
> useful in your case:
> 
> Icon=name of the icon without the suffix
> X-Icon-path=/usr/share/icons
> X-Window-Icon=again the name of the icon without the suffix
> 
> Note, you should have a 26x26 icon in
> /usr/share/icons/hicolor/26x26/hildon/, but I think this step is in the
> documentation.

Yes, I have all three of those parameters in my .desktop file.  My icon is
in the directory that you indicated.  One of the many mysteries I
encountered during this exercise was that making the icon 26x26 resulted in
an icon that was much smaller than all the other icons in the menu.  I had
to make it 64x64 before it was the same size as the others.  So I have a
64x64 icon in the 26x26 directory.  I got the default icon in the task
navigator bar even when my logo was 26x26.

Another mystery was that changing the icon did not change what appeared in
the menu.  I tried gtk-update-icon-cache -f /usr/share/icons/hicolor.  That
command updated the icon-theme.cache in the hicolor directory, but I still
got the old icon.  The only way I could get the new icon to display was to
reboot.  Evidently, there is another cache.

The Diablo Reference Manual says to create a symbolic link
in /etc/others-menu/extra-applications to control the order in which
applications are listed in the menu.  I find that what I put in that
directory has no effect.

Buried deep in documentation I discovered that the application must create
and hold an osso Context or the application will run for ~2 minutes and
spontaneously exit.
-- 
Jeffrey Barish


More information about the maemo-developers mailing list