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'm trying to create my first launcher for Unity that works like this:

when I use the left-click, it opens the browser set as default on the system
when I use the right-click it opens 3 shortcuts related with the other browsers of the system.

But I'm having this problem: for each shortcut, unity is duplicating the icon on the launcher. I wanna all the browsers set on the same icon.
Is that possible?

Here is the code:

[Desktop Entry]
Comment=Navegue pela Internet
Exec=sensible-browser %u

X-Ayatana-Desktop-Shortcuts=Google Chrome;Firefox;Opera;

[Google Chrome Shortcut Group]
Name=Google Chrome
Exec=/opt/google/chrome/google-chrome %U

[Firefox Shortcut Group]
Exec=firefox %u

[Opera Shortcut Group]
Exec=/usr/bin/opera %U

Thanks in advance

share|improve this question
up vote 5 down vote accepted

Ok, I gotta it!
What I had to do is to edit (as a root) the file bamf.index set in the path /usr/share/applications.
Just added few lines with the name of the launcher followed by the command you want it to manage.
The example on my case was:

brox.desktop  sensible-browser %u
brox.desktop  /opt/google/chrome/google-chrome %u
brox.desktop  firefox %u
brox.desktop  /usr/bin/opera %u

And its done!

share|improve this answer
Please add this to the quicklist topic here (ofcourse with a picture of how it looks)… – Rinzwind May 30 '11 at 14:32

I do not think what you are asking is at all possible.

You have to remember that each Launcher item represents a single application and if you were to group them as you are suggesting there is no way to control quitting or un-minimizing each separate application from the launcher.

I guess you could write code that would treat each individual application like multiple windows of a Laucher item but to me sounds very hacky and of limited use.

share|improve this answer
Thanks Cas. But I really apreciate if I could save some space on my Launcher regrouping applications. I was thinking about the "StartupWMClass" property, but I dont know how to manage it right. – René Moraes May 28 '11 at 17:22

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.