Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

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.

share|improve this question
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 at 3:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.