Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I prepared a custom .desktop file for my chromium browser that loads a different user profile. When ever i click the icon now it open the browser, but also uses a new icon on the launcher bar (not locked to the launcher). Is there any way to tell the program to keep connected to the first icon?

[Desktop Entry]
Name=Second Browser
Exec=chromium-browser --user-data-dir="/home/patrick/bin/chrome-profiles/second"
share|improve this question

2 Answers 2

NO, not easily.

This will often occur after an update, where Ubuntu / Unity no longer thinks this is the exact same application. I also often get this with LibreOffice.

Suggested workarounds:

(1.) Lock the icon that opens to the Unity bar, and remove (detach) the other.


(2.) Recreate your custom launcher, based on the default launcher. See my posting: How can I edit/create new launcher items in Unity by hand?

share|improve this answer
up vote 1 down vote accepted

I found an easy way to accomplish exactly what I am trying to do:


will group all windows of the same domain and/or path. You can find out the WM_CLASS by executing the following command on the shell and clicking the window you want to find the class out for:

xprop WM_CLASS

This way you can have more than one Chromium-browser entry on your launchbar and the entries stay grouped together.

share|improve this answer
what was the line in your case? – green Sep 10 '12 at 12:55 – Patrick Sep 12 '12 at 8:56

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.