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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running Fedora 18 with Gnome 3.6.

I've installed Eclipse manually, and added the menu entry with alacarte. My problem is that even though I have "Favorite"'d the menu entry, it keeps duplicating the entry every time a new instance is launched. See screenshot for example: http://i.stack.imgur.com/rIZQ4.png

Normally, it would group the new instances under one icon. For some reason my menu entry just won't match up. I have tried to rename the menu entry to what the application's title is when starting up but to no avail. I'm not quite sure what is causing this behavior, but would really love some assistance here.

share|improve this question
Thanks, that did the trick. :) – nand May 2 '13 at 8:55
up vote 2 down vote accepted

As don_crissti suggested, I was missing the WMCLASS key within my .desktop entry. Without this, the DM(here beign Gnome3.6) failed to match the windows together with the specified menu entry. The launcher now groups all subsequent instances of Eclipse together now.

From what I've read about the .desktop file specification, here, is that the optionally extra key specified during the launching process provides an identifier to match other associated top-level(parent?) windows with:


      a string to match against the "resource name" or "resource
      class" hints. If this key is present, the launchee will most
      likely not send a "remove" message on its own. If the
      desktop environment detects a toplevel window mapped with
      this name or class, it should send a "remove" message for 
      the startup sequence.

And further on within the document:


If true, it is KNOWN that the application will map at least one window with the given string as its WM class or WM name hint.

share|improve this answer
You can get the WMCLASS(es) of any window by running the following command in terminal: xprop | grep WM_CLASS and clicking on the window the class of which you are interested in. – vbence Dec 16 '14 at 9:25

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.