0

I have the following desktop file

[Desktop Entry]
Name=My Game
Exec=/usr/games/mygame %U
Icon=mygame
Terminal=false
Type=Application
Categories=Game;

Comment=Start my game
Comment[de_DE]=Starte mein Spiel

and the entry is shown perfectly in Ubuntu (13.04) Unity Dash.

When mygame is executed, it spawns a detached process again and I get a Unity Launcher entry with a question mark and Untitled window.

Is there a way to tell Unity, where the (detached) process originated or which desktop file to assign to the process?

abergmeier
  • 13,224
  • 13
  • 64
  • 120

2 Answers2

1

Try to use the absolute path for your Icon file. This might help otherwise it could be a bug in the bamf.

to4dy
  • 128
  • 1
  • 1
  • 10
  • Thanks. Reading up on _bamf_ led me to realize the problem with launching detached processes (see edit). – abergmeier Aug 07 '13 at 10:41
  • You have to work on the file itself now there is no possibility for a workaround with the ".desktop" file. You have to remove the abstraction of the symbolic link or use the executable directly. – to4dy Aug 07 '13 at 12:09
  • That's not an option, since we have an update mechanism, which might even replace the underlying files. So we need one point, which decides what to start. – abergmeier Aug 07 '13 at 14:54
0

Workaround was to set the X11 property _NET_WM_ICON on the detached process.

abergmeier
  • 13,224
  • 13
  • 64
  • 120