Skip to content. Skip to navigation

Ian Lawrence

Sections
Personal tools
You are here: Home Blog Adding your application and its icon to the Ubuntu Mobile Desktop

Adding your application and its icon to the Ubuntu Mobile Desktop

The final step for your new mobile application

This information also appears on the Ubuntu Mobile Guide

Assuming you have a fairly recent drop of UME, new applications should:

  1. install a .desktop file into /usr/share/applications
  2. install an icon into /usr/share/icons/hicolor/<size>/<type> (e.g. /usr/share/icons/hicolor/64x64/apps/myapp.png)

If 1 is done correctly, the app should show up in the UI.

If 1 and 2 are done, it will also have the right icon :)

OnlyShowIn

TheĀ  freedesktop.org has a standard
OnlyShowIn
for the application to appear in certain environments.

So you can also add
OnlyShowIn=GNOME;Mobile;

to the desktop file and the icon will appear on the desktop.

Also something to note:


For example, cheese does not have
OnlyShowIn
but it appears in hildon desktop...others also do not have
OnlyShowIn
and do not appear..it seems that there is some special
implementation for ubuntu mobile which is seen in the gconf keys:
/desktop/hildon/htmlhomeplugin/onlyshowin_filter

Check

OnlyShowIn
value in .desktop. If
_False_
then every .desktop is shown and
/onlyshowin_ignore

Always show these apps, even if they don't have

OnlyShowIn
Cheese is in this list hence it is always shown

Apparently this key should go away when *every* application is a good citizen and complies to the freedesktop.org standards.

_____
tags:
Monday, June 09, 2008 in CodeWork  | Permalink |  Comments (0)
del.icio.us   Digg   Yahoo   Google   Spurl