Was trying to get simple desktop entry to work without creating duplicated after app run.

That's for st3 under GNOME3 (Fedora 19), and .desktop file looks like this:

[Desktop Entry]
Name=Sublime Text 3
Exec="path-to-exec" %f
Comment=some comment

Thought that "StartupWMClass" key will do the job of grouping windows in a dock, but it does not. Looks like I've missed something.

I got wmclass with xprop WMCLASS:

[me@pc ~]$ xprop WM_CLASS
WM_CLASS(STRING) = "sublime_text", "Sublime_text"


enter image description here

Desktop entry is at the top (ye, another logo file), but app is not get grouped in it and is shown separately. Any way to fix it?

Thanx for help!

UPDATE: I've changed .desktop entry to:

[Desktop Entry]
Name=Sublime Text 3
GenericName=Text Editor
Comment=Edit text files
Exec="/usr/local/bin/sublime_text_3/sublime_text" %U
Name[en_US]=Sublime Text 3

(found on the st forum)

Everything is fine now. Don't understand how it works though, thought that WMClass is how windows are grouped.

  • So, I'm guessing the addition of the MimeType resolved the issue on your system with the "Sublime" text editor? Do you follow the same procedure for other applications on your system with same issues? I noticed the "WMClass" entry is missing altogether. This freedesktop classification stuff is confusing as hell! :( – ILMostro_7 Jun 5 '14 at 7:44
  • Running into the same exact problem. Using your updated .desktop entry hasn't resolved it at all. The odd thing is, I got it working before, but now it has stopped working, without a change to the .desktop file. The only thing i can think of is that I recently started working in a sublime project, but closing that project hasn't made a difference. – Suchipi Oct 27 '15 at 3:38
  • Is this a bug in GNOME 3.8? ask.fedoraproject.org/en/question/32982/… – Cool Charac Feb 18 '17 at 11:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.