maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Application (VCMI) not working from .desktop file (https://talk.maemo.org/showthread.php?t=70779)

0x47 2011-03-07 15:58

Application (VCMI) not working from .desktop file
 
Hi everyone,

I have a strange issue (in the SDK as well as on the N900). After porting VCMI, it runs fine from the terminal, by simply running "vcmiclient". But if I start it from the .desktop file, (1.) the sound doesn't work and (2.) the game freezes on starting a new game. (#2 only happens on the N900, it works in the SDK). The only error I get is from the SDK, as I get no terminal output when running from the .desktop file on the N900. Here are the lines:

Code:

[sbox-FREMANTLE_X86_VCMI: ~] > Starting...
Creating console and logfile: 0
Not entire config/settings.txt parsed!
Loading settings: 50
VCMI 0.84b (client)
New screen flags: 2147483648
        Initializing screen: 70
        Initializing video: 0
        Initializing minors: 0
        Loading default system settings: 10
Mix_OpenAudio error: No available audio device
        Initializing sound: 10
Initializing screen and sound handling: 20
hildon-desktop[2142]: GLIB WARNING ** hd-task-navigator - XGetClassHint(1400002): failed
Loading .lod files: 110
trackerd[2158]: GLIB WARNING ** Tracker - Could not add monitor for path:'/home/slash/MyDocs/.camera'
trackerd[2158]: GLIB CRITICAL ** Tracker - Could not open directory 'file:///home/slash/MyDocs/.camera': No such file or directory
        General text handler: 80
        Hero handler: 20
        Artifact handler: 0
[...]

When running from the terminal the sound works flawless:
Code:

[sbox-FREMANTLE_X86_VCMI: ~] > vcmiclient
Starting...
Creating console and logfile: 10
Not entire config/settings.txt parsed!
Loading settings: 50
VCMI 0.84b (client)
New screen flags: 2147483648
        Initializing screen: 230
        Initializing video: 0
        Initializing minors: 0
        Loading default system settings: 0
        Initializing sound: 40
Initializing screen and sound handling: 40
hildon-desktop[2142]: GLIB WARNING ** hd-task-navigator - XGetClassHint(1200002): failed
Loading .lod files: 80
        General text handler: 60
        Hero handler: 10
        Artifact handler: 0
[...]

The .desktop file:
Code:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=VCMI Heroes 3
GenericName=Rewrite of the Heroes of Might and Magic 3 Engine
Exec=vcmiclient
Type=Application
Icon=vcmi
X-Window-Icon=vcmi
X-Window-Icon-Dimmed=vcmi
#X-Osso-Service=com.nokia.maemopad
X-Osso-Type=application/x-executable
X-HildonDesk-ShowInToolbar=true
Categories=Game;
Terminal=true

Please note that I also tried to comment and change various lines for testing (like Terminal=false, X-HildonDesk-ShowInToolbar=false or commenting some of the X-* options). I also tried the "Exec=run-standalone.sh vcmiclient" as well as with full path etc. Nothing helped...

Any ideas?

Thanks,
Dan

0x47 2011-05-20 07:24

Re: Application (VCMI) not working from .desktop file
 
Why are there dozens of applications suffering from this issue and nobody bloody cares?

(BounceBounce, InnerSpin, Them bloody ducks, ...)

Or is it just me?

ivgalvez 2011-05-20 09:01

Re: Application (VCMI) not working from .desktop file
 
BounceBounce "works for me". Dunno about the others...

0x47 2011-05-20 10:30

Re: Application (VCMI) not working from .desktop file
 
Could you try ThemBloodyDucks? Never worked for me.

Do you have the power kernel installed?

ivgalvez 2011-05-20 10:52

Re: Application (VCMI) not working from .desktop file
 
I have Kernel Power v46, but not CSSU.

ThemBloodyDucks just installed and working.

0x47 2011-05-20 11:58

Re: Application (VCMI) not working from .desktop file
 
Thanks for trying! I don't have CSSU either.
If I'm the only one with this issue then I'll just live with it...


All times are GMT. The time now is 10:53.

vBulletin® Version 3.8.8