Ubuntu – Change Icon of Wine Application in Unity Launcher


I frequently run a windows program with wine. When I open this program it shows up in the unity launcher as wine instead of the actual opened program.

I have made a desktop launcher with the right icon but dragging this to the unity launcher reverts the icon back to the wineglass icon. When starting the application it's denominated as Wine Windows Program Loader instead of its actual name.


enter image description here

Best Answer

Workaround on Ubuntu 12.04 LTS and up


This workaround requires a working launcher for your Wine application. Here's a tutorial on how to create one. The workaround also applies to applications installed with PlayOnLinux scripts. More recent versions of PlayOnLinux automatically add the StartupWMClass line to their launcher.


Open your .desktop launcher in your favorite text editor and append this line to the file:


where application.exe is the base name of the executable you want to launch in Wine.

Don't use the the full path, only the base name. And make sure it's unqoted (a general rule you should follow with desktop files).


Application icons and descriptions should be rendered fine now:

enter image description here

Source: https://bugs.launchpad.net/unity-2d/+bug/702452

Related Question