For I-don’t-know-how-long, Chromium and Chrome have had “web app windows”, which allow a web page to run in a minimalistic window. Odds are you’ve seen this before, if not used it yourself for something.
These app windows are useful for web pages that you treat, like… well, applications. Things like mail, document editors, and so on. It’s nice to be able to pull things right out of the browser.
Except… it doesn’t play too nicely with the Unity launcher. There is a well-reported issue of the launcher mixing up which icon the instances of Chromium belong to. I’ve found a bit of a workaround.
I actually discovered it by accident when Google Apps did the transition to making organization profiles different from normal profiles. I had to start using two Google profiles – one for mail, one for everything else. Instead of switching accounts all the time, I made a separate Chromium profile, and then made an app window. And I noticed the following:
See how the launcher says there’s a normal browser window and a mail window? Apparently, making a profile for something makes the launcher see it as a “different application”. Making a new profile isn’t the best solution I admit…. but, it makes app windows play nice.
To open a website as an app window, add –app=http://example.org to the launcher parameters for chromium. Making and using a new profile is as easy as adding –user-data-dir=/path/to/profile .
Here’s an example .desktop:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=chromium-browser –user-data-dir=/home/username/.gmail –app=http://mail.google.com
Name=GMail
Icon=applications-mail




Pingback: Jorge Castro: Workaround for Unity Web Applications in Chromium | Ubuntu Forms