[launcher] The "exploTux" game is wrongly matched

Bug #858288 reported by Nicolas Delvaux
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
BAMF
Confirmed
Medium
Unassigned
Unity
Invalid
Low
Unassigned
unity-2d
Invalid
Undecided
Unassigned
bamf (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

I created a .desktop file for the "exploTux" game (see https://gna.org/projects/explotux/ or in my ppa: https://launchpad.net/~malizor/+archive/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 works fine but the game window is represented by a new "launcher" in the panel.

In the attached a screenshot, the upper launcher is my .desktop and 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.

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;

As a side note, I'm not sure this problem is specific to this game: I noticed something really similar with 0ad.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: bamfdaemon 0.2.90-0ubuntu3
ProcVersionSignature: Ubuntu 2.6.38-11.50-generic 2.6.38.8
Uname: Linux 2.6.38-11-generic x86_64
Architecture: amd64
Date: Sat Sep 24 17:29:37 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
ProcEnviron:
 LANGUAGE=fr_FR:en
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: bamf
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Nicolas Delvaux (malizor) wrote :
Revision history for this message
Omer Akram (om26er) wrote :

thanks for the bug report. Please test latest unity in Ubuntu 11.10 and let us know if the issue still stands.

Changed in bamf:
status: New → Incomplete
Changed in bamf (Ubuntu):
status: New → Incomplete
Changed in unity:
status: New → Incomplete
Changed in unity-2d:
status: New → Incomplete
Revision history for this message
Nicolas Delvaux (malizor) wrote :

Same problem on an up-to-date Ubuntu 11.10. Reopening.

Changed in bamf:
status: Incomplete → New
Changed in unity:
status: Incomplete → New
Changed in bamf (Ubuntu):
status: Incomplete → New
Changed in unity-2d:
status: Incomplete → New
Omer Akram (om26er)
Changed in bamf:
importance: Undecided → Low
Changed in unity:
importance: Undecided → Low
Changed in bamf (Ubuntu):
importance: Undecided → Low
Revision history for this message
Nicolas Delvaux (malizor) wrote :

Is this supposed to work out of the box or do applications need to integrate some lib to make bamf work?

I don't know if this is the same bug, but I noticed that windows opened by OpenGL (eg. via glutCreateWindow()) are not matched either.

You can try with this OpenGL "Hello World":
http://en.wikibooks.org/wiki/OpenGL_Programming/Basics/Structure#Creating_a_Window

(you can build this example with something like "gcc file.c -o out -lglut")

Revision history for this message
Sam Spilsbury (smspillaz) wrote :

xprop:

XKLAVIER_STATE(INTEGER) = 0, 0
WM_STATE(WM_STATE):
  window state: Normal
  icon window: 0x0
_NET_WM_DESKTOP(CARDINAL) = 0
_NET_WM_STATE(ATOM) =
_COMPIZ_WINDOW_DECOR_INPUT_FRAME(WINDOW): window id # 0xe01cac
_NET_FRAME_EXTENTS(CARDINAL) = 1, 1, 25, 1
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_STICK, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW
WM_LOCALE_NAME(STRING) = "C"
WM_HINTS(WM_HINTS):
  Client accepts input or input focus: True
  Initial state is Normal State.
WM_NORMAL_HINTS(WM_SIZE_HINTS):
  user specified location: 0, 0
WM_CLIENT_MACHINE(STRING) = "smspillaz"
WM_NAME(STRING) = "exploTux"

.desktop file:

smspillaz@smspillaz:~$ cat /usr/share/applications/exploTux.desktop
[Desktop Entry]
Version=1.0
Name=exploTux
Comment=A Bomberman like in 3D
Comment[fr]=Jeu en 3D similaire à Bomberman
Exec=/usr/games/exploTux
Icon=explotux
Terminal=false
Type=Application
Categories=Game;ActionGame;
X-Ayatana-Desktop-Shortcuts=Settings;

[Settings Shortcut Group]
Name=Display Settings
Name[fr]=Paramêtres graphiques
Exec=/usr/games/exploTux -c
TargetEnvironment=Unity

Changed in bamf:
status: New → Confirmed
Changed in unity:
status: New → Invalid
Changed in bamf (Ubuntu):
status: New → Confirmed
Changed in unity-2d:
status: New → Invalid
Changed in bamf:
importance: Low → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.