Skip to content

Instantly share code, notes, and snippets.

@esamson
Created August 27, 2015 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esamson/22bb4be04a5375642a91 to your computer and use it in GitHub Desktop.
Save esamson/22bb4be04a5375642a91 to your computer and use it in GitHub Desktop.
Patch to Google Chrome launcher to match window title properly. See http://kb.openstudioproject.com/content/fix-double-google-chrome-icon-docky-and-plank
--- original/google-chrome.desktop
+++ fixed/google-chrome.desktop
@@ -112,6 +112,7 @@
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml_xml;image/webp;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;
X-Ayatana-Desktop-Shortcuts=NewWindow;NewIncognito
+StartupWMClass=Google-chrome-stable
[NewWindow Shortcut Group]
Name=New Window
@@ -167,6 +168,7 @@
Name[zh_TW]=開新視窗
Exec=/usr/bin/google-chrome-stable
TargetEnvironment=Unity
+StartupWMClass=Google-chrome-stable
[NewIncognito Shortcut Group]
Name=New Incognito Window
@@ -220,3 +222,4 @@
Name[zh_TW]=新增無痕式視窗
Exec=/usr/bin/google-chrome-stable --incognito
TargetEnvironment=Unity
+StartupWMClass=Google-chrome-stable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment