Unity launcher and Steam icons
When I launch "The Binding of Isaac" with Steam, at first the icon is good.
When the popup "Preparing to launch Isaac" is closed, a second icon appear
Then when the game is launched, the first icon disappear, and I get only the "?" icon.
How could I change the icon of this second program which is launched?
I already fill ~/.local/share/applications/The\ Binding\ of\ Isaac\ Rebirth.desktop with the good icon
[Desktop Entry]
Name=The Binding of Isaac: Rebirth
Comment=Play this game on Steam
Exec=steam steam://rungameid/250900
Icon=steam_icon_250900
Terminal=false
Type=Application
Categories=Game;I'm on Ubuntu 16.04
Thanks for help :)
1 Answer
What to do if a window and an icon are not connected
In some cases, a window and the launcher (-icon in the Unity Launcher) are not connected to each other somehow. In your case, the cause is possibly the first ("popup") window, making the launcher icon "assume" the job is done. This often happens with applications, running under either Steam or Wine.
How to solve
- Open your application, wait for the final window to appear.
- Open a terminal window, type
xprop WM_CLASS+ Return. Your pointer changes into a big +. Click on the window of your application. The terminal will output two strings, looking like:
"gnome-terminal-server", "Gnome-terminal". Pick either one (I use the lower case one mostly) and add it to your.desktopfile:[Desktop Entry] Name=The Binding of Isaac: Rebirth Comment=Play this game on Steam Exec=steam steam://rungameid/250900 Icon=steam_icon_250900 Terminal=false Type=Application Categories=Game; StartupWMClass=wmclass...where
wmclassis the lowercase string you found. Possibly you need to log out and back in, and it should work.
More in general
"Zoraya ter Beek, age 29, just died by assisted suicide in the Netherlands. She was physically healthy, but psychologically depressed. It's an abomination that an entire society would actively facilitate, even encourage, someone ending their own life because they had no hope. Th…"