Google Chrome opens in a new window in a new launcher icon












34















When I open Google Chrome on Ubuntu 14.04, it opens a new window on a different launcher icon (I have Chrome in my Launcher pinned) and the title of the window is a tab that I don't have open any more. I have uninstalled and reinstalled Google Chrome.










share|improve this question

























  • Which version of Chrome are you using? There are two different type of Chrome: A. Chrome .. or ... B. Chromium. Maybe you have both of version installed?

    – Faron
    Dec 27 '13 at 17:49











  • I'm using version 31.0.1650.63 (Official Build 238485), and it's copyrighted by Google, so not Chromium. I don't have Chromium installed.

    – zwork
    Dec 27 '13 at 18:28











  • possible duplicate of Chrome or Chromium icon doesn't show in the launcher

    – Eliah Kagan
    Jul 25 '14 at 19:05
















34















When I open Google Chrome on Ubuntu 14.04, it opens a new window on a different launcher icon (I have Chrome in my Launcher pinned) and the title of the window is a tab that I don't have open any more. I have uninstalled and reinstalled Google Chrome.










share|improve this question

























  • Which version of Chrome are you using? There are two different type of Chrome: A. Chrome .. or ... B. Chromium. Maybe you have both of version installed?

    – Faron
    Dec 27 '13 at 17:49











  • I'm using version 31.0.1650.63 (Official Build 238485), and it's copyrighted by Google, so not Chromium. I don't have Chromium installed.

    – zwork
    Dec 27 '13 at 18:28











  • possible duplicate of Chrome or Chromium icon doesn't show in the launcher

    – Eliah Kagan
    Jul 25 '14 at 19:05














34












34








34


22






When I open Google Chrome on Ubuntu 14.04, it opens a new window on a different launcher icon (I have Chrome in my Launcher pinned) and the title of the window is a tab that I don't have open any more. I have uninstalled and reinstalled Google Chrome.










share|improve this question
















When I open Google Chrome on Ubuntu 14.04, it opens a new window on a different launcher icon (I have Chrome in my Launcher pinned) and the title of the window is a tab that I don't have open any more. I have uninstalled and reinstalled Google Chrome.







launcher google-chrome






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 19 '15 at 15:54









Tim

19.7k1484141




19.7k1484141










asked Dec 27 '13 at 17:33









zworkzwork

6951517




6951517













  • Which version of Chrome are you using? There are two different type of Chrome: A. Chrome .. or ... B. Chromium. Maybe you have both of version installed?

    – Faron
    Dec 27 '13 at 17:49











  • I'm using version 31.0.1650.63 (Official Build 238485), and it's copyrighted by Google, so not Chromium. I don't have Chromium installed.

    – zwork
    Dec 27 '13 at 18:28











  • possible duplicate of Chrome or Chromium icon doesn't show in the launcher

    – Eliah Kagan
    Jul 25 '14 at 19:05



















  • Which version of Chrome are you using? There are two different type of Chrome: A. Chrome .. or ... B. Chromium. Maybe you have both of version installed?

    – Faron
    Dec 27 '13 at 17:49











  • I'm using version 31.0.1650.63 (Official Build 238485), and it's copyrighted by Google, so not Chromium. I don't have Chromium installed.

    – zwork
    Dec 27 '13 at 18:28











  • possible duplicate of Chrome or Chromium icon doesn't show in the launcher

    – Eliah Kagan
    Jul 25 '14 at 19:05

















Which version of Chrome are you using? There are two different type of Chrome: A. Chrome .. or ... B. Chromium. Maybe you have both of version installed?

– Faron
Dec 27 '13 at 17:49





Which version of Chrome are you using? There are two different type of Chrome: A. Chrome .. or ... B. Chromium. Maybe you have both of version installed?

– Faron
Dec 27 '13 at 17:49













I'm using version 31.0.1650.63 (Official Build 238485), and it's copyrighted by Google, so not Chromium. I don't have Chromium installed.

– zwork
Dec 27 '13 at 18:28





I'm using version 31.0.1650.63 (Official Build 238485), and it's copyrighted by Google, so not Chromium. I don't have Chromium installed.

– zwork
Dec 27 '13 at 18:28













possible duplicate of Chrome or Chromium icon doesn't show in the launcher

– Eliah Kagan
Jul 25 '14 at 19:05





possible duplicate of Chrome or Chromium icon doesn't show in the launcher

– Eliah Kagan
Jul 25 '14 at 19:05










5 Answers
5






active

oldest

votes


















42














rm $HOME/.local/share/applications/google-chrome-*.desktop


From then on, Unity launcher won't create a second icon when you open Chrome.



I suspect that file is created when Chrome navigates directly to a site upon launch. The google-chrome-*.desktop file gives Unity a different Name value for Google Chrome than that defined when the application was added to the launcher, so Unity launcher doesn't know it's the same application.






share|improve this answer



















  • 1





    For Trusty 14.04 amd64 my launcher icon displayed irrelevant rubbish, instead of "Google Chrome". I did exactly as above, only by using nautilus plus Ctrl-H to get to this file and Move to the Rubbish Bin. Then I restarted Chrome from the Ubuntu launcher button [HUD]. All good now, thanks Chris.

    – loser114491
    May 11 '14 at 8:41











  • Worked perfectly for me with Ubuntu 14.10.

    – heinob
    Nov 26 '14 at 6:57











  • Worked for me too, however I will also note that I had to also untick the boxes "enable guest browsing" and "allow others to create profiles" and then close chrome, reopen and re-tick those boxes and close again. Afterwards the launcher icon worked properly again.

    – hazrpg
    May 14 '15 at 9:45











  • Worked like charm on Ubuntu 14.04 64 bit

    – Abhishek
    Aug 9 '15 at 16:35






  • 1





    It seems these are also created whenever you add an app shortcut (like Google Music, Inbox by Gmail, etc.) to your launcher. Deleting these .desktop files always deletes my app shortcuts from the launcher, which is its own problem.

    – msolters
    Sep 7 '15 at 1:20





















12














This fix helped me out when the problem came back after each update.



edit /usr/share/applications/google-chrome.desktop


There are three entries in this file:
[Desktop Entry], [NewWindow Shortcut Group] and [NewIncognito Shortcut Group]



After each entry add this line:



StartupWMClass=Google-chrome-stable


Found this solution here:
http://kb.openstudioproject.com/content/fix-double-google-chrome-icon-docky-and-plank



And a bug report about it here:
https://code.google.com/p/chromium/issues/detail?id=378881#c13






share|improve this answer


























  • this with the rm of *.desktop from above fixed everything for me.

    – Alex R
    Aug 11 '15 at 14:12



















1














Here's what I found, Make sure you don't have a second google-chrome-stable.desktop file in your ~/.local/share/applications folder, for me that fixed the issue by doing:



sudo rm -rf google*.desktop in that folder, the only .desktop files you should have should reside in /usr/share/applications/. Hope this helps.






share|improve this answer































    1














    To explain things here, I came here because I WANTED my Chrome window to have a new icon.



    Groupings of icons on the Launcher are controlled by the StartupWMClass= entry in the .desktop file in /opt/google/chrome/chrome https://jira.solium.com/ --class=boo --app=https://hipchat.solium.com/chat



    You can edit the entry in the .desktop file to set the WM_CLASS that the icon will represent. You can edit the entry by adding --class myclassname to the chrome arguments, after all other arguments. So for me to launch a HipChat Chrome App, I used this:



    [Desktop Entry]
    Name=HipChat App
    Comment=HipChat in Chrome App
    Exec=/opt/google/chrome/chrome https://google.com/ --class=hipchat --app=https://hipchat.com/chat
    Icon=/usr/share/icons/hicolor/1024x1024/apps/hipchat4.png
    Terminal=false
    Type=Application
    Categories=Network,Chat
    StartupWMClass=hipchat





    share|improve this answer








    New contributor




    turiyag is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.




























      0














      In the ~/.local/share/applications/google-chrome-stable.desktop, I replaced its Exec= line with that of the /usr/share/applications/google-chrome.desktop.



      I had this line:




      Exec=opt/google/chrome




      and I replaced it with:




      Exec=/usr/bin/google-chrome-stable %U







      share|improve this answer























        Your Answer








        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "89"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f396448%2fgoogle-chrome-opens-in-a-new-window-in-a-new-launcher-icon%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        5 Answers
        5






        active

        oldest

        votes








        5 Answers
        5






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        42














        rm $HOME/.local/share/applications/google-chrome-*.desktop


        From then on, Unity launcher won't create a second icon when you open Chrome.



        I suspect that file is created when Chrome navigates directly to a site upon launch. The google-chrome-*.desktop file gives Unity a different Name value for Google Chrome than that defined when the application was added to the launcher, so Unity launcher doesn't know it's the same application.






        share|improve this answer



















        • 1





          For Trusty 14.04 amd64 my launcher icon displayed irrelevant rubbish, instead of "Google Chrome". I did exactly as above, only by using nautilus plus Ctrl-H to get to this file and Move to the Rubbish Bin. Then I restarted Chrome from the Ubuntu launcher button [HUD]. All good now, thanks Chris.

          – loser114491
          May 11 '14 at 8:41











        • Worked perfectly for me with Ubuntu 14.10.

          – heinob
          Nov 26 '14 at 6:57











        • Worked for me too, however I will also note that I had to also untick the boxes "enable guest browsing" and "allow others to create profiles" and then close chrome, reopen and re-tick those boxes and close again. Afterwards the launcher icon worked properly again.

          – hazrpg
          May 14 '15 at 9:45











        • Worked like charm on Ubuntu 14.04 64 bit

          – Abhishek
          Aug 9 '15 at 16:35






        • 1





          It seems these are also created whenever you add an app shortcut (like Google Music, Inbox by Gmail, etc.) to your launcher. Deleting these .desktop files always deletes my app shortcuts from the launcher, which is its own problem.

          – msolters
          Sep 7 '15 at 1:20


















        42














        rm $HOME/.local/share/applications/google-chrome-*.desktop


        From then on, Unity launcher won't create a second icon when you open Chrome.



        I suspect that file is created when Chrome navigates directly to a site upon launch. The google-chrome-*.desktop file gives Unity a different Name value for Google Chrome than that defined when the application was added to the launcher, so Unity launcher doesn't know it's the same application.






        share|improve this answer



















        • 1





          For Trusty 14.04 amd64 my launcher icon displayed irrelevant rubbish, instead of "Google Chrome". I did exactly as above, only by using nautilus plus Ctrl-H to get to this file and Move to the Rubbish Bin. Then I restarted Chrome from the Ubuntu launcher button [HUD]. All good now, thanks Chris.

          – loser114491
          May 11 '14 at 8:41











        • Worked perfectly for me with Ubuntu 14.10.

          – heinob
          Nov 26 '14 at 6:57











        • Worked for me too, however I will also note that I had to also untick the boxes "enable guest browsing" and "allow others to create profiles" and then close chrome, reopen and re-tick those boxes and close again. Afterwards the launcher icon worked properly again.

          – hazrpg
          May 14 '15 at 9:45











        • Worked like charm on Ubuntu 14.04 64 bit

          – Abhishek
          Aug 9 '15 at 16:35






        • 1





          It seems these are also created whenever you add an app shortcut (like Google Music, Inbox by Gmail, etc.) to your launcher. Deleting these .desktop files always deletes my app shortcuts from the launcher, which is its own problem.

          – msolters
          Sep 7 '15 at 1:20
















        42












        42








        42







        rm $HOME/.local/share/applications/google-chrome-*.desktop


        From then on, Unity launcher won't create a second icon when you open Chrome.



        I suspect that file is created when Chrome navigates directly to a site upon launch. The google-chrome-*.desktop file gives Unity a different Name value for Google Chrome than that defined when the application was added to the launcher, so Unity launcher doesn't know it's the same application.






        share|improve this answer













        rm $HOME/.local/share/applications/google-chrome-*.desktop


        From then on, Unity launcher won't create a second icon when you open Chrome.



        I suspect that file is created when Chrome navigates directly to a site upon launch. The google-chrome-*.desktop file gives Unity a different Name value for Google Chrome than that defined when the application was added to the launcher, so Unity launcher doesn't know it's the same application.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 30 '14 at 21:22









        ChrisChris

        53654




        53654








        • 1





          For Trusty 14.04 amd64 my launcher icon displayed irrelevant rubbish, instead of "Google Chrome". I did exactly as above, only by using nautilus plus Ctrl-H to get to this file and Move to the Rubbish Bin. Then I restarted Chrome from the Ubuntu launcher button [HUD]. All good now, thanks Chris.

          – loser114491
          May 11 '14 at 8:41











        • Worked perfectly for me with Ubuntu 14.10.

          – heinob
          Nov 26 '14 at 6:57











        • Worked for me too, however I will also note that I had to also untick the boxes "enable guest browsing" and "allow others to create profiles" and then close chrome, reopen and re-tick those boxes and close again. Afterwards the launcher icon worked properly again.

          – hazrpg
          May 14 '15 at 9:45











        • Worked like charm on Ubuntu 14.04 64 bit

          – Abhishek
          Aug 9 '15 at 16:35






        • 1





          It seems these are also created whenever you add an app shortcut (like Google Music, Inbox by Gmail, etc.) to your launcher. Deleting these .desktop files always deletes my app shortcuts from the launcher, which is its own problem.

          – msolters
          Sep 7 '15 at 1:20
















        • 1





          For Trusty 14.04 amd64 my launcher icon displayed irrelevant rubbish, instead of "Google Chrome". I did exactly as above, only by using nautilus plus Ctrl-H to get to this file and Move to the Rubbish Bin. Then I restarted Chrome from the Ubuntu launcher button [HUD]. All good now, thanks Chris.

          – loser114491
          May 11 '14 at 8:41











        • Worked perfectly for me with Ubuntu 14.10.

          – heinob
          Nov 26 '14 at 6:57











        • Worked for me too, however I will also note that I had to also untick the boxes "enable guest browsing" and "allow others to create profiles" and then close chrome, reopen and re-tick those boxes and close again. Afterwards the launcher icon worked properly again.

          – hazrpg
          May 14 '15 at 9:45











        • Worked like charm on Ubuntu 14.04 64 bit

          – Abhishek
          Aug 9 '15 at 16:35






        • 1





          It seems these are also created whenever you add an app shortcut (like Google Music, Inbox by Gmail, etc.) to your launcher. Deleting these .desktop files always deletes my app shortcuts from the launcher, which is its own problem.

          – msolters
          Sep 7 '15 at 1:20










        1




        1





        For Trusty 14.04 amd64 my launcher icon displayed irrelevant rubbish, instead of "Google Chrome". I did exactly as above, only by using nautilus plus Ctrl-H to get to this file and Move to the Rubbish Bin. Then I restarted Chrome from the Ubuntu launcher button [HUD]. All good now, thanks Chris.

        – loser114491
        May 11 '14 at 8:41





        For Trusty 14.04 amd64 my launcher icon displayed irrelevant rubbish, instead of "Google Chrome". I did exactly as above, only by using nautilus plus Ctrl-H to get to this file and Move to the Rubbish Bin. Then I restarted Chrome from the Ubuntu launcher button [HUD]. All good now, thanks Chris.

        – loser114491
        May 11 '14 at 8:41













        Worked perfectly for me with Ubuntu 14.10.

        – heinob
        Nov 26 '14 at 6:57





        Worked perfectly for me with Ubuntu 14.10.

        – heinob
        Nov 26 '14 at 6:57













        Worked for me too, however I will also note that I had to also untick the boxes "enable guest browsing" and "allow others to create profiles" and then close chrome, reopen and re-tick those boxes and close again. Afterwards the launcher icon worked properly again.

        – hazrpg
        May 14 '15 at 9:45





        Worked for me too, however I will also note that I had to also untick the boxes "enable guest browsing" and "allow others to create profiles" and then close chrome, reopen and re-tick those boxes and close again. Afterwards the launcher icon worked properly again.

        – hazrpg
        May 14 '15 at 9:45













        Worked like charm on Ubuntu 14.04 64 bit

        – Abhishek
        Aug 9 '15 at 16:35





        Worked like charm on Ubuntu 14.04 64 bit

        – Abhishek
        Aug 9 '15 at 16:35




        1




        1





        It seems these are also created whenever you add an app shortcut (like Google Music, Inbox by Gmail, etc.) to your launcher. Deleting these .desktop files always deletes my app shortcuts from the launcher, which is its own problem.

        – msolters
        Sep 7 '15 at 1:20







        It seems these are also created whenever you add an app shortcut (like Google Music, Inbox by Gmail, etc.) to your launcher. Deleting these .desktop files always deletes my app shortcuts from the launcher, which is its own problem.

        – msolters
        Sep 7 '15 at 1:20















        12














        This fix helped me out when the problem came back after each update.



        edit /usr/share/applications/google-chrome.desktop


        There are three entries in this file:
        [Desktop Entry], [NewWindow Shortcut Group] and [NewIncognito Shortcut Group]



        After each entry add this line:



        StartupWMClass=Google-chrome-stable


        Found this solution here:
        http://kb.openstudioproject.com/content/fix-double-google-chrome-icon-docky-and-plank



        And a bug report about it here:
        https://code.google.com/p/chromium/issues/detail?id=378881#c13






        share|improve this answer


























        • this with the rm of *.desktop from above fixed everything for me.

          – Alex R
          Aug 11 '15 at 14:12
















        12














        This fix helped me out when the problem came back after each update.



        edit /usr/share/applications/google-chrome.desktop


        There are three entries in this file:
        [Desktop Entry], [NewWindow Shortcut Group] and [NewIncognito Shortcut Group]



        After each entry add this line:



        StartupWMClass=Google-chrome-stable


        Found this solution here:
        http://kb.openstudioproject.com/content/fix-double-google-chrome-icon-docky-and-plank



        And a bug report about it here:
        https://code.google.com/p/chromium/issues/detail?id=378881#c13






        share|improve this answer


























        • this with the rm of *.desktop from above fixed everything for me.

          – Alex R
          Aug 11 '15 at 14:12














        12












        12








        12







        This fix helped me out when the problem came back after each update.



        edit /usr/share/applications/google-chrome.desktop


        There are three entries in this file:
        [Desktop Entry], [NewWindow Shortcut Group] and [NewIncognito Shortcut Group]



        After each entry add this line:



        StartupWMClass=Google-chrome-stable


        Found this solution here:
        http://kb.openstudioproject.com/content/fix-double-google-chrome-icon-docky-and-plank



        And a bug report about it here:
        https://code.google.com/p/chromium/issues/detail?id=378881#c13






        share|improve this answer















        This fix helped me out when the problem came back after each update.



        edit /usr/share/applications/google-chrome.desktop


        There are three entries in this file:
        [Desktop Entry], [NewWindow Shortcut Group] and [NewIncognito Shortcut Group]



        After each entry add this line:



        StartupWMClass=Google-chrome-stable


        Found this solution here:
        http://kb.openstudioproject.com/content/fix-double-google-chrome-icon-docky-and-plank



        And a bug report about it here:
        https://code.google.com/p/chromium/issues/detail?id=378881#c13







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 1 '15 at 12:43









        bummi

        3802713




        3802713










        answered Mar 1 '15 at 9:16









        FalkFalk

        12616




        12616













        • this with the rm of *.desktop from above fixed everything for me.

          – Alex R
          Aug 11 '15 at 14:12



















        • this with the rm of *.desktop from above fixed everything for me.

          – Alex R
          Aug 11 '15 at 14:12

















        this with the rm of *.desktop from above fixed everything for me.

        – Alex R
        Aug 11 '15 at 14:12





        this with the rm of *.desktop from above fixed everything for me.

        – Alex R
        Aug 11 '15 at 14:12











        1














        Here's what I found, Make sure you don't have a second google-chrome-stable.desktop file in your ~/.local/share/applications folder, for me that fixed the issue by doing:



        sudo rm -rf google*.desktop in that folder, the only .desktop files you should have should reside in /usr/share/applications/. Hope this helps.






        share|improve this answer




























          1














          Here's what I found, Make sure you don't have a second google-chrome-stable.desktop file in your ~/.local/share/applications folder, for me that fixed the issue by doing:



          sudo rm -rf google*.desktop in that folder, the only .desktop files you should have should reside in /usr/share/applications/. Hope this helps.






          share|improve this answer


























            1












            1








            1







            Here's what I found, Make sure you don't have a second google-chrome-stable.desktop file in your ~/.local/share/applications folder, for me that fixed the issue by doing:



            sudo rm -rf google*.desktop in that folder, the only .desktop files you should have should reside in /usr/share/applications/. Hope this helps.






            share|improve this answer













            Here's what I found, Make sure you don't have a second google-chrome-stable.desktop file in your ~/.local/share/applications folder, for me that fixed the issue by doing:



            sudo rm -rf google*.desktop in that folder, the only .desktop files you should have should reside in /usr/share/applications/. Hope this helps.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Mar 30 '15 at 5:09









            Chris RogersChris Rogers

            111




            111























                1














                To explain things here, I came here because I WANTED my Chrome window to have a new icon.



                Groupings of icons on the Launcher are controlled by the StartupWMClass= entry in the .desktop file in /opt/google/chrome/chrome https://jira.solium.com/ --class=boo --app=https://hipchat.solium.com/chat



                You can edit the entry in the .desktop file to set the WM_CLASS that the icon will represent. You can edit the entry by adding --class myclassname to the chrome arguments, after all other arguments. So for me to launch a HipChat Chrome App, I used this:



                [Desktop Entry]
                Name=HipChat App
                Comment=HipChat in Chrome App
                Exec=/opt/google/chrome/chrome https://google.com/ --class=hipchat --app=https://hipchat.com/chat
                Icon=/usr/share/icons/hicolor/1024x1024/apps/hipchat4.png
                Terminal=false
                Type=Application
                Categories=Network,Chat
                StartupWMClass=hipchat





                share|improve this answer








                New contributor




                turiyag is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.

























                  1














                  To explain things here, I came here because I WANTED my Chrome window to have a new icon.



                  Groupings of icons on the Launcher are controlled by the StartupWMClass= entry in the .desktop file in /opt/google/chrome/chrome https://jira.solium.com/ --class=boo --app=https://hipchat.solium.com/chat



                  You can edit the entry in the .desktop file to set the WM_CLASS that the icon will represent. You can edit the entry by adding --class myclassname to the chrome arguments, after all other arguments. So for me to launch a HipChat Chrome App, I used this:



                  [Desktop Entry]
                  Name=HipChat App
                  Comment=HipChat in Chrome App
                  Exec=/opt/google/chrome/chrome https://google.com/ --class=hipchat --app=https://hipchat.com/chat
                  Icon=/usr/share/icons/hicolor/1024x1024/apps/hipchat4.png
                  Terminal=false
                  Type=Application
                  Categories=Network,Chat
                  StartupWMClass=hipchat





                  share|improve this answer








                  New contributor




                  turiyag is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.























                    1












                    1








                    1







                    To explain things here, I came here because I WANTED my Chrome window to have a new icon.



                    Groupings of icons on the Launcher are controlled by the StartupWMClass= entry in the .desktop file in /opt/google/chrome/chrome https://jira.solium.com/ --class=boo --app=https://hipchat.solium.com/chat



                    You can edit the entry in the .desktop file to set the WM_CLASS that the icon will represent. You can edit the entry by adding --class myclassname to the chrome arguments, after all other arguments. So for me to launch a HipChat Chrome App, I used this:



                    [Desktop Entry]
                    Name=HipChat App
                    Comment=HipChat in Chrome App
                    Exec=/opt/google/chrome/chrome https://google.com/ --class=hipchat --app=https://hipchat.com/chat
                    Icon=/usr/share/icons/hicolor/1024x1024/apps/hipchat4.png
                    Terminal=false
                    Type=Application
                    Categories=Network,Chat
                    StartupWMClass=hipchat





                    share|improve this answer








                    New contributor




                    turiyag is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.










                    To explain things here, I came here because I WANTED my Chrome window to have a new icon.



                    Groupings of icons on the Launcher are controlled by the StartupWMClass= entry in the .desktop file in /opt/google/chrome/chrome https://jira.solium.com/ --class=boo --app=https://hipchat.solium.com/chat



                    You can edit the entry in the .desktop file to set the WM_CLASS that the icon will represent. You can edit the entry by adding --class myclassname to the chrome arguments, after all other arguments. So for me to launch a HipChat Chrome App, I used this:



                    [Desktop Entry]
                    Name=HipChat App
                    Comment=HipChat in Chrome App
                    Exec=/opt/google/chrome/chrome https://google.com/ --class=hipchat --app=https://hipchat.com/chat
                    Icon=/usr/share/icons/hicolor/1024x1024/apps/hipchat4.png
                    Terminal=false
                    Type=Application
                    Categories=Network,Chat
                    StartupWMClass=hipchat






                    share|improve this answer








                    New contributor




                    turiyag is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.









                    share|improve this answer



                    share|improve this answer






                    New contributor




                    turiyag is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.









                    answered Jan 21 at 19:02









                    turiyagturiyag

                    1112




                    1112




                    New contributor




                    turiyag is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.





                    New contributor





                    turiyag is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.






                    turiyag is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.























                        0














                        In the ~/.local/share/applications/google-chrome-stable.desktop, I replaced its Exec= line with that of the /usr/share/applications/google-chrome.desktop.



                        I had this line:




                        Exec=opt/google/chrome




                        and I replaced it with:




                        Exec=/usr/bin/google-chrome-stable %U







                        share|improve this answer




























                          0














                          In the ~/.local/share/applications/google-chrome-stable.desktop, I replaced its Exec= line with that of the /usr/share/applications/google-chrome.desktop.



                          I had this line:




                          Exec=opt/google/chrome




                          and I replaced it with:




                          Exec=/usr/bin/google-chrome-stable %U







                          share|improve this answer


























                            0












                            0








                            0







                            In the ~/.local/share/applications/google-chrome-stable.desktop, I replaced its Exec= line with that of the /usr/share/applications/google-chrome.desktop.



                            I had this line:




                            Exec=opt/google/chrome




                            and I replaced it with:




                            Exec=/usr/bin/google-chrome-stable %U







                            share|improve this answer













                            In the ~/.local/share/applications/google-chrome-stable.desktop, I replaced its Exec= line with that of the /usr/share/applications/google-chrome.desktop.



                            I had this line:




                            Exec=opt/google/chrome




                            and I replaced it with:




                            Exec=/usr/bin/google-chrome-stable %U








                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Aug 20 '15 at 15:26









                            Rusty ShacklefordRusty Shackleford

                            3115




                            3115






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Ask Ubuntu!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f396448%2fgoogle-chrome-opens-in-a-new-window-in-a-new-launcher-icon%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                How did Captain America manage to do this?

                                迪纳利

                                南乌拉尔铁路局