0

I have installed Komodo Edit 7.0.2 and had to create a custom .desktop file in order to launch it from the Gnome Shell dash - see http://pastebin.com/VuKniTiM

Everything was working fine: one click on the launcher and its icon became "active", meaning that the application was now running, with the ability to switch between windows etc.

Since I accepted the auto-update to Komodo Edit 7.1 on July 17, my launcher still launches the app, but it sometimes doesn't become "active", and instead a new low-resolution icon of Komodo appears in the dash - the low-res icon in the dash lacks ability to add as a favorite or launch a new application window.

Do you have any idea how to fix that? Where I should I have a look into?

Thanks in advance for you answers.

karel
  • 13,706

1 Answers1

0

What helped me was to modify the launcher file and add the wmclass attribute. Probably the wmclass of the Komodo Edit window changed after an update, but the launcher wasn't updated and Gnome can't match the launcher with the window.

Here's what I did:

  1. if on Wayland, run the Looking glass (lg) app and find out the wmclass of the Komodo Edit window. To run it, press Alt + F2, type "lg" and enter. If on X11, find the wmclass using xprop command line tool
  2. edit the *.desktop launcher file for Komodo Edit (usually in /usr/share/applications). Save it under ~/.local/share/applications to apply the changes only for your account and keep them even after updates
  • you can use UI editor Arronax - File -> Open application, then set Window Class to the wmclass from step 1
  • or using a text editor, open the *.desktop file, e.g. /usr/share/applications/komodo-edit.desktop, in the [Desktop Entry] section, add line with StartupWMClass={komodo-wm-class} where {komodo-wm-class} is the wmclass from step 1. Then save it into ~/.local/share/applications.

After this, wait a few seconds, Gnome should detect the change. Then your window should become matched with the launcher in the Dash.