4
1
When I have multiple Chrome windows open, Docky correctly groups them into one icon on the dock. However, what I want to do is launch a Chrome application launcher (with the --app= command line switch) and have it launch to a separate icon that operates completely independently from my regular Chrome icon.
I can currently achieve only part of this. Following the advice here (http://goo.gl/OiTUz) I created the following launcher for Gmail, with an altered StartupWMClass, which I then dropped onto the dock:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Name=Gmail
Exec=/opt/google/chrome/google-chrome --app="https://mail.google.com/mail"
Terminal=true
Icon=chrome-https___mail.google.com_mail
Type=Application
Categories=Network;WebBrowser;
StartupWMClass=chrome-gmail
Name[en_US]=Gmail
That launcher does create a separate icon in the dock, and that icon only contains the application mode window created by this launcher. However, my pre-existing Chrome launcher also matches the application mode window and snares it as well. For example, if I have three regular Chrome windows open and click the Gmail launcher above, the Gmail icon will only contain the application mode window, but the regular Chrome icon will now contain four windows.
Is there something else I can do to make the application mode window ONLY match to the application mode launcher?
Currently on a machine with Ubuntu 10.04 and Docky 2.1.0 from the Docky PPA.
1Fascinating @Orlando! The combination of class AND the separate user-data-dir seems to branch it off... into the same group as whatever terminal I'm using. :P Putting the launcher in Docky spawns a new icon, and when launching it from GNOME, there's no option to pin to dock. Any tips for getting it to persist to the dock? – Calvin Fisher – 2011-03-28T00:01:58.313
1
I wouldn't be able to tell you.. I don't use gnome. However, I think there is a workaround for the docky problem somewhere in launchpad. EDIT: found it https://bugs.launchpad.net/docky/+bug/425938
– Orlando – 2011-03-28T19:26:06.233