Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I created a .desktop file for the "exploTux" game (see https://gna.org/projects/explotux/ ), but the launcher does not match the app window.

To be clear: when I click the launcher on the Unity panel, the game launches and work fine but the game window is represented by a new "launcher" in the panel.

Here is a screenshot:

launchers in the Unity-panel.

The upper launcher is my .desktop, the other is the one that appears when the game is running (note that there is only one opened window and that the panel icon show 3 arrows as in "3 open windows"...).
I tried to pin this new launcher but then it makes unity crashy.

Where do you think the problem is? I tested on both Natty and Oneiric.

Here is the code of my .desktop file:

[Desktop Entry]
Version=1.0
Name=exploTux
Comment=A Bomberman like in 3D
Exec=/usr/games/exploTux
Icon=explotux
Terminal=false
Type=Application
Categories=Game;ActionGame;

edit: I have a similar problem in Gnome-Shell:

Same in Gnome-Shell

share|improve this question

1 Answer 1

up vote 1 down vote accepted

It is likely that the game's "executable" actually launches something else, or that the game is changing the window title/class or something of the sort, and thus confusing libamf (and by extension Unity). I don't think there is anything you can do to fix that (directly), but you can report a bug against Unity.

Bug reports of this type are usually appreciated by the developers.

share|improve this answer
    
Thanks, I reported a bug against bamf. It's here: bugs.launchpad.net/ubuntu/+source/bamf/+bug/858288 –  Nicolas Delvaux Sep 24 '11 at 15:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.