I want to have two completely different instances of Chromium, each with its own icon, so that:
- There are two taskbar buttons, and…
- …two entries in the window switcher (Ubuntu 18, GNOME)
- They are easily distinguishable by icon/color
- I can Alt+Tab between these two instances, and Alt+` (key above Tab) among windows within an instance
How can I do that?
Solutions I've considered:
- Different profiles – doesn't satisfy the requirements because all Chromium windows, from all profiles, get lumped under the same taskbar button and window switcher entry.
- Install Chrome Beta and Chrome Dev. These aren't exactly Chromium, and I prefer the open source Chrome.
- Install Chromium beta/dev. That might work, but the PPA seems maintained by an apparently random developer, who isn't affiliated with Google. If the builds get compromised, the security implications are serious. Also, I prefer the stability of Chromium, and the beta/dev builds tend to be less stable.
- I've copied /usr/lib/chromium-browser to /usr/lib/chromium-browser-2 and created a local shortcut
~/.local/share/applications/chromium-browser-2.desktop
pointing to it, with a separate icon. That showed a separate icon in the Dash, but when launching it, it opened my existing Chromium profile, and the window still got lumped with the existing Chromium windows. Looks like the executable must be actually different in some way?
Best Answer
What worked (cobbled together from the various answers and comments - thanks!) was to create a
.desktop
file in~/.local/share/applications
with a few tweaks:Make sure to replace
/home/dandv/
with your home directory. Using~
did not work.The tweaks I applied to the
.desktop
file were:--class="SomethingLikeChr2"
to theExec=
lineStartupWMClass=SomethingLikeChr2
to the[Desktop Entry]
(use the same unique value as above; apparently this is what makes a separate window, that won't get lumped in with existing Chromium windows--user-data-dir=...
to theExec
line, due to this Chromium bug.Result