3

I use an application (Simplify3D for example) which is a binary launched by bash script.
The GUI is created by the binary, while the .desktop file points to the script.
For this reason I do have an icon on the Desktop launcher and in the lens, but do not have an icon in the Unity Launcher - just a grey box with a question mark.
How can I make the icon visible in the launcher too?

The .desktop file contents is

[Desktop Entry]
Type=Application
Version=0.9.4
Name=Simplify3D
Comment=Simplify3D Software
Icon=/opt/Simplify3D/icon.png
Exec=/opt/Simplify3D/LaunchScript.sh
Terminal=false
Path=/opt/Simplify3D
StartupWMClass=Simplify3D // That line fixed it
Barafu Albino
  • 6,401
  • 1
  • 34
  • 42

1 Answers1

3

In these "indirect" cases, you have to tell the desktop file what application it is connected to:

Add a line to your .desktop file, like:

StartupWMClass=[your_application] (the binary file in this case)

also pointed out here.

Jacob Vlijm
  • 82,471
  • 12
  • 195
  • 299
  • Nailed it! Thanks. As per [this answer](http://askubuntu.com/questions/367396/what-represent-the-startupwmclass-field-of-a-desktop-file), the string was not the binary file, but the class I had to figure out with `xprop WM_CLASS` command. – Barafu Albino Aug 04 '14 at 16:36