Reply
Thread Tools
fpp's Avatar
Posts: 2,853 | Thanked: 968 times | Joined on Nov 2005
#1
I am trying to manually add a desktop shortcut to my N900.

I have created the .desktop file and placed it in /usr/share/applications/hildon/, and copied the 48x48 PNG icon to /opt/usr/share/icons/hicolor/48x48/apps/

I'm fairly sure the .desktop file is correct. The shortcut appears in the apps menu, and in the list when adding shortcuts to the desktop. In both cases the shortcut works, i.e. launches the app correctly.

But in all cases the icon remains the default blue square, not the icon referenced in the .desktop.

Is there anything special I can do to make it appear ? I haven't tried rebooting, looking for a better way :-)

TIA
fp
__________________
maemo blog
 
Posts: 39 | Thanked: 36 times | Joined on Aug 2010 @ UAE
#2
i think u have to reboot ur mobile and it will appear after that if not try to copy ur desktop here to see what is wrong
 
Posts: 54 | Thanked: 4 times | Joined on Jul 2010 @ Suriname
#3
have the same problem.
 
fpp's Avatar
Posts: 2,853 | Thanked: 968 times | Joined on Nov 2005
#4
Rebooting is the Windows way :-)

If icons appear after a reboot it means some script was run during the process, and that script could be run manually without rebooting. That is probably what App Manager does, I just can't think of the proper search terms to find it.

Anyway, the .desktop file looks like this :

[Desktop Entry]
Version=1.0.0
Encoding=UTF-8
Type=Application
Name=ZeApp
Exec=/usr/bin/zeapp
Icon=zeapp
X-Window-Icon=zeapp
X-Icon-path=/opt/usr/share/icons/hicolor/48x48/apps/
Categories=Office;
X-Osso-Type=application/x-executable

I first tried it with the minimal required items (as per the Wiki), then added the X-* stuff I found here and there, which didn't change anything.
__________________
maemo blog
 
fpp's Avatar
Posts: 2,853 | Thanked: 968 times | Joined on Nov 2005
#5
Well I gave up and rebooted, I was one version late on kernel-power anyway :-)

Sure enough the icon has appeared on the desktop and in menus. I'm still sure there is a better way, though...
__________________
maemo blog
 
Posts: 992 | Thanked: 738 times | Joined on Jun 2010 @ Low Earth Orbit
#6
Any changes to the .desktop file will take effect next time you enter the menu. For example, I changed an icon for a program by copying a new file over the existing one, the icon shown in menu is not updated. I then edited the .desktop file to point to a non-existent icon, entered/exited menu (no icon is displayed for that program), then edited .desktop file to point back to original icon, when I enter menu now my new icon is displayed.
 

The Following User Says Thank You to kureyon For This Useful Post:
Posts: 56 | Thanked: 31 times | Joined on Jul 2008 @ Austria
#7
Call "update-desktop-database".
See also http://freedesktop.org/wiki/Software/desktop-file-utils
 

The Following User Says Thank You to dannym For This Useful Post:
fpp's Avatar
Posts: 2,853 | Thanked: 968 times | Joined on Nov 2005
#8
Thanks a lot ! Re-using upstream standards is all well and good, but you'd think someone could have put a note in the Maemo docs :-)
__________________
maemo blog
 
Posts: 992 | Thanked: 738 times | Joined on Jun 2010 @ Low Earth Orbit
#9
running "update-desktop-database" does nothing visible.

According to that web page:
update-desktop-database: updates the database containing a cache of MIME types handled by desktop files.
If that is all that it does (ie it doesn't have any other hidden/not-mentioned functions) then it's not going to refresh the menu/desktop icons.
 

The Following User Says Thank You to kureyon For This Useful Post:
Posts: 436 | Thanked: 406 times | Joined on Jan 2010
#10
I restarting hildon-desktop process should work, but I'm not sure what the command line for that is.
 

The Following User Says Thank You to SavageD For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 20:01.