Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 just started using Gnome Shell and so far I love it. However, I added some of my frequently used apps as favourites to the dock, and some of them show up twice when launched. Once as if they are not running and then another that IS running, but with a low-rez icon.

So far this has happened with:

  • Komodo IDE
  • SmartGit
  • SmartSVN

It's quite annoying. I assume this happens because these apps run 2 processes, the first of which (that is used in the .desktop shortcuts) is just a bash script that sets environmental variables and applies some logic prior to launching the actual program.

Does anyone know if there's any way to fix this? It's not a show stopper but it's still quite annoying.


share|improve this question

Webupd8 (read Web update) has a Gnome 3 tweaking tool that looks like it addresses that.
I'm sure there is a config file also, but I'm not familiar enough with Gnome 3 to be any assistance there.

share|improve this answer
Yeah I've got the tweak tool installed, but I can't find any setting that would address duplicate icons. Additionally I doubt it's something a tweak tool could address seeing as this seems more like a bug than a tweak. – Naatan Oct 27 '11 at 13:03

i found the answer in another thread

  1. Launch the application
  2. Fire up a terminal and run xprop WM_CLASS. Click the application window.
  3. You'll get some output like WM_CLASS(STRING) = "Navigator", "Firefox". Choose one of the classes, eg Firefox in this example
  4. Add the class as the value of StartupWMClass in the .desktop file. For example, StartupWMClass=Firefox
  5. Save the .desktop file, close the application and re-open it. There should now only be 1 icon in the launcher
share|improve this answer

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.