[maemo-developers] Problem with .desktop file

From: Martin mlvj at yahoo.co.uk
Date: Sun Jun 17 23:15:48 EEST 2007
Hiya,

I have a slightly odd problem that manifested from one releases before the  
last 2006 release and is still present now; that is, this used to work,  
but hasn't worked for a while. First reported to me here:  
http://www.internettablettalk.com/forums/showthread.php?t=4805

I ported "Dungeon Master" and "Chaos Strikes Back"  
(https://garage.maemo.org/frs/download.php/1627/chaos-strikes-back_9.9-3_armel.deb)  
and the installer creates two links, both in the "Extras" menu.

The "Dungeon Master" link works, but the "Chaos Strikes Back" link does  
not.

...if you manually run "Chaos Strikes Back" from the command prompt, it is  
fine.

...both work fine on the xephyr x86.

Here are both desktop files, and a diff:

[sbox-SDK_ARMEL: ~/chaos-strikes-back_9.9-3] > cat chaosstrikesback.desktop
[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Name=Chaos Strikes Back
Exec=/usr/games/chaosstrikesback
X-Osso-Type=application/x-executable
X-HildonDesk-ShowInToolbar=true
StartupWMClass=Chaos_strikes_back_for_linux

[sbox-SDK_ARMEL: ~/chaos-strikes-back_9.9-3] > cat dungeonmaster.desktop
[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Name=Dungeon Master
Exec=/usr/games/dungeonmaster
X-Osso-Type=application/x-executable
X-HildonDesk-ShowInToolbar=true
StartupWMClass=Chaos_strikes_back_for_linux

[sbox-SDK_ARMEL: ~/chaos-strikes-back_9.9-3] > diff  
chaosstrikesback.desktop dungeonmaster.desktop
5,6c5,6
< Name=Chaos Strikes Back
< Exec=/usr/games/chaosstrikesback
---
> Name=Dungeon Master
> Exec=/usr/games/dungeonmaster

What could be incorrect? Is it because I don't have enough of a  
difference? i.e. the StartupWMClass is the same...

Is there an error log created by duff menu entries?

PS - Fanoush, if you're reading, I added this code as suggested by you  
ages ago:

case SDL_KEYDOWN:
     if (ev.key.keysym.sym == SDLK_F6)
         SDL_WM_ToggleFullScreen(surface);

...and it works a bit, but not fully!

Thanks very much for all help, as always,

Martin J

More information about the maemo-developers mailing list