Firefox profiles with different icons in Ubuntu dock












7















Ubuntu 17.10 (xorg), GNOME 3.26.2, Firefox 58.0 (64 bit).



I have a few Firefox profiles setup. When I run each profile, I would like it to be a separate icon on the dock. How do I make that happen? Right now what happens is that they are all grouped in the standard Firefox icon.










share|improve this question





























    7















    Ubuntu 17.10 (xorg), GNOME 3.26.2, Firefox 58.0 (64 bit).



    I have a few Firefox profiles setup. When I run each profile, I would like it to be a separate icon on the dock. How do I make that happen? Right now what happens is that they are all grouped in the standard Firefox icon.










    share|improve this question



























      7












      7








      7


      4






      Ubuntu 17.10 (xorg), GNOME 3.26.2, Firefox 58.0 (64 bit).



      I have a few Firefox profiles setup. When I run each profile, I would like it to be a separate icon on the dock. How do I make that happen? Right now what happens is that they are all grouped in the standard Firefox icon.










      share|improve this question
















      Ubuntu 17.10 (xorg), GNOME 3.26.2, Firefox 58.0 (64 bit).



      I have a few Firefox profiles setup. When I run each profile, I would like it to be a separate icon on the dock. How do I make that happen? Right now what happens is that they are all grouped in the standard Firefox icon.







      firefox gnome-shell ubuntu-dock dock






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 30 '18 at 11:24









      pomsky

      32.7k11103135




      32.7k11103135










      asked Jan 29 '18 at 0:34









      dln949dln949

      3911513




      3911513






















          2 Answers
          2






          active

          oldest

          votes


















          4





          +100









          Edit profile's .desktop file:




          • add --class SomeClass to the end of Exec key to change program's WM_CLASS value (see this article)

          • add new key StartupWMClass=SomeClass to the end of file (see this article and desktop entry specification)


          The string SomeClass must be the same in both changes.



          Example .desktop file:



          [Desktop Entry]
          Name=Firefox Test
          Exec=firefox -p test -no-remote --class FxTest
          Terminal=false
          Type=Application
          StartupNotify=true
          Icon=/path/to/custom/icon.png
          StartupWMClass=FxTest





          share|improve this answer


























          • grisfer, this answer appears to work for the question I asked, so thank you. However..... While I do now have distinct icons on the dock, they are all the official Firefox icon, and not the icon I specified in the desktop file. (I realize that is not part of my original question.)

            – dln949
            Jul 13 '18 at 0:45








          • 1





            Did you add both changes (--class SomeClass and StartupWMClass=SomeClass)? If only the first, then the icons will be distinct, but with the standard image. Also, the string SomeClass must be the same in both changes. If the strings are different then icons will be with the standard image.

            – grisfer
            Jul 13 '18 at 11:25






          • 1





            Unfortunately, I don't know. It works for me (I have a custom icon).

            – grisfer
            Jul 13 '18 at 21:16






          • 1





            This bug suggests that gnome is not honoring the --class option

            – JellicleCat
            Nov 30 '18 at 20:31






          • 1





            This works for me on KDE Plasma 5.

            – MountainX
            Dec 3 '18 at 3:41



















          0














          Copy the firefox icon file.



          cp /usr/share/applications/firefox.desktop 
          /usr/share/applications/firefox-dev.desktop


          In the new file edit 4 lines, using the full path for the executable and icon. The icon shown below is a blue colored version of the firefox icon.



          [Desktop Entry]
          ...
          Exec=/opt/firefox-dev/firefox
          Icon=/opt/firefox-dev/browser/chrome/icons/default/default128.png
          ...
          [Desktop Action new-window]
          ...
          Exec=/opt/firefox-dev/firefox -new-window
          ...
          [Desktop Action new-private-window]
          ...
          Exec=/opt/firefox-dev/firefox -private-window


          Then follow the instructions here to put the new icon file in the gnome registry.



          sudo apt install dconf-editor
          dconf-editor


          Navigate to org.gnome.shell favorite-apps and add in your new icon



          [ ..., 'firefox.desktop', 'firefox-dev.desktop', ... ]


          It may necessary to log out and log back in before using the icon.






          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%2f1000818%2ffirefox-profiles-with-different-icons-in-ubuntu-dock%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            4





            +100









            Edit profile's .desktop file:




            • add --class SomeClass to the end of Exec key to change program's WM_CLASS value (see this article)

            • add new key StartupWMClass=SomeClass to the end of file (see this article and desktop entry specification)


            The string SomeClass must be the same in both changes.



            Example .desktop file:



            [Desktop Entry]
            Name=Firefox Test
            Exec=firefox -p test -no-remote --class FxTest
            Terminal=false
            Type=Application
            StartupNotify=true
            Icon=/path/to/custom/icon.png
            StartupWMClass=FxTest





            share|improve this answer


























            • grisfer, this answer appears to work for the question I asked, so thank you. However..... While I do now have distinct icons on the dock, they are all the official Firefox icon, and not the icon I specified in the desktop file. (I realize that is not part of my original question.)

              – dln949
              Jul 13 '18 at 0:45








            • 1





              Did you add both changes (--class SomeClass and StartupWMClass=SomeClass)? If only the first, then the icons will be distinct, but with the standard image. Also, the string SomeClass must be the same in both changes. If the strings are different then icons will be with the standard image.

              – grisfer
              Jul 13 '18 at 11:25






            • 1





              Unfortunately, I don't know. It works for me (I have a custom icon).

              – grisfer
              Jul 13 '18 at 21:16






            • 1





              This bug suggests that gnome is not honoring the --class option

              – JellicleCat
              Nov 30 '18 at 20:31






            • 1





              This works for me on KDE Plasma 5.

              – MountainX
              Dec 3 '18 at 3:41
















            4





            +100









            Edit profile's .desktop file:




            • add --class SomeClass to the end of Exec key to change program's WM_CLASS value (see this article)

            • add new key StartupWMClass=SomeClass to the end of file (see this article and desktop entry specification)


            The string SomeClass must be the same in both changes.



            Example .desktop file:



            [Desktop Entry]
            Name=Firefox Test
            Exec=firefox -p test -no-remote --class FxTest
            Terminal=false
            Type=Application
            StartupNotify=true
            Icon=/path/to/custom/icon.png
            StartupWMClass=FxTest





            share|improve this answer


























            • grisfer, this answer appears to work for the question I asked, so thank you. However..... While I do now have distinct icons on the dock, they are all the official Firefox icon, and not the icon I specified in the desktop file. (I realize that is not part of my original question.)

              – dln949
              Jul 13 '18 at 0:45








            • 1





              Did you add both changes (--class SomeClass and StartupWMClass=SomeClass)? If only the first, then the icons will be distinct, but with the standard image. Also, the string SomeClass must be the same in both changes. If the strings are different then icons will be with the standard image.

              – grisfer
              Jul 13 '18 at 11:25






            • 1





              Unfortunately, I don't know. It works for me (I have a custom icon).

              – grisfer
              Jul 13 '18 at 21:16






            • 1





              This bug suggests that gnome is not honoring the --class option

              – JellicleCat
              Nov 30 '18 at 20:31






            • 1





              This works for me on KDE Plasma 5.

              – MountainX
              Dec 3 '18 at 3:41














            4





            +100







            4





            +100



            4




            +100





            Edit profile's .desktop file:




            • add --class SomeClass to the end of Exec key to change program's WM_CLASS value (see this article)

            • add new key StartupWMClass=SomeClass to the end of file (see this article and desktop entry specification)


            The string SomeClass must be the same in both changes.



            Example .desktop file:



            [Desktop Entry]
            Name=Firefox Test
            Exec=firefox -p test -no-remote --class FxTest
            Terminal=false
            Type=Application
            StartupNotify=true
            Icon=/path/to/custom/icon.png
            StartupWMClass=FxTest





            share|improve this answer















            Edit profile's .desktop file:




            • add --class SomeClass to the end of Exec key to change program's WM_CLASS value (see this article)

            • add new key StartupWMClass=SomeClass to the end of file (see this article and desktop entry specification)


            The string SomeClass must be the same in both changes.



            Example .desktop file:



            [Desktop Entry]
            Name=Firefox Test
            Exec=firefox -p test -no-remote --class FxTest
            Terminal=false
            Type=Application
            StartupNotify=true
            Icon=/path/to/custom/icon.png
            StartupWMClass=FxTest






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jul 13 '18 at 21:25

























            answered Jul 12 '18 at 11:36









            grisfergrisfer

            1565




            1565













            • grisfer, this answer appears to work for the question I asked, so thank you. However..... While I do now have distinct icons on the dock, they are all the official Firefox icon, and not the icon I specified in the desktop file. (I realize that is not part of my original question.)

              – dln949
              Jul 13 '18 at 0:45








            • 1





              Did you add both changes (--class SomeClass and StartupWMClass=SomeClass)? If only the first, then the icons will be distinct, but with the standard image. Also, the string SomeClass must be the same in both changes. If the strings are different then icons will be with the standard image.

              – grisfer
              Jul 13 '18 at 11:25






            • 1





              Unfortunately, I don't know. It works for me (I have a custom icon).

              – grisfer
              Jul 13 '18 at 21:16






            • 1





              This bug suggests that gnome is not honoring the --class option

              – JellicleCat
              Nov 30 '18 at 20:31






            • 1





              This works for me on KDE Plasma 5.

              – MountainX
              Dec 3 '18 at 3:41



















            • grisfer, this answer appears to work for the question I asked, so thank you. However..... While I do now have distinct icons on the dock, they are all the official Firefox icon, and not the icon I specified in the desktop file. (I realize that is not part of my original question.)

              – dln949
              Jul 13 '18 at 0:45








            • 1





              Did you add both changes (--class SomeClass and StartupWMClass=SomeClass)? If only the first, then the icons will be distinct, but with the standard image. Also, the string SomeClass must be the same in both changes. If the strings are different then icons will be with the standard image.

              – grisfer
              Jul 13 '18 at 11:25






            • 1





              Unfortunately, I don't know. It works for me (I have a custom icon).

              – grisfer
              Jul 13 '18 at 21:16






            • 1





              This bug suggests that gnome is not honoring the --class option

              – JellicleCat
              Nov 30 '18 at 20:31






            • 1





              This works for me on KDE Plasma 5.

              – MountainX
              Dec 3 '18 at 3:41

















            grisfer, this answer appears to work for the question I asked, so thank you. However..... While I do now have distinct icons on the dock, they are all the official Firefox icon, and not the icon I specified in the desktop file. (I realize that is not part of my original question.)

            – dln949
            Jul 13 '18 at 0:45







            grisfer, this answer appears to work for the question I asked, so thank you. However..... While I do now have distinct icons on the dock, they are all the official Firefox icon, and not the icon I specified in the desktop file. (I realize that is not part of my original question.)

            – dln949
            Jul 13 '18 at 0:45






            1




            1





            Did you add both changes (--class SomeClass and StartupWMClass=SomeClass)? If only the first, then the icons will be distinct, but with the standard image. Also, the string SomeClass must be the same in both changes. If the strings are different then icons will be with the standard image.

            – grisfer
            Jul 13 '18 at 11:25





            Did you add both changes (--class SomeClass and StartupWMClass=SomeClass)? If only the first, then the icons will be distinct, but with the standard image. Also, the string SomeClass must be the same in both changes. If the strings are different then icons will be with the standard image.

            – grisfer
            Jul 13 '18 at 11:25




            1




            1





            Unfortunately, I don't know. It works for me (I have a custom icon).

            – grisfer
            Jul 13 '18 at 21:16





            Unfortunately, I don't know. It works for me (I have a custom icon).

            – grisfer
            Jul 13 '18 at 21:16




            1




            1





            This bug suggests that gnome is not honoring the --class option

            – JellicleCat
            Nov 30 '18 at 20:31





            This bug suggests that gnome is not honoring the --class option

            – JellicleCat
            Nov 30 '18 at 20:31




            1




            1





            This works for me on KDE Plasma 5.

            – MountainX
            Dec 3 '18 at 3:41





            This works for me on KDE Plasma 5.

            – MountainX
            Dec 3 '18 at 3:41













            0














            Copy the firefox icon file.



            cp /usr/share/applications/firefox.desktop 
            /usr/share/applications/firefox-dev.desktop


            In the new file edit 4 lines, using the full path for the executable and icon. The icon shown below is a blue colored version of the firefox icon.



            [Desktop Entry]
            ...
            Exec=/opt/firefox-dev/firefox
            Icon=/opt/firefox-dev/browser/chrome/icons/default/default128.png
            ...
            [Desktop Action new-window]
            ...
            Exec=/opt/firefox-dev/firefox -new-window
            ...
            [Desktop Action new-private-window]
            ...
            Exec=/opt/firefox-dev/firefox -private-window


            Then follow the instructions here to put the new icon file in the gnome registry.



            sudo apt install dconf-editor
            dconf-editor


            Navigate to org.gnome.shell favorite-apps and add in your new icon



            [ ..., 'firefox.desktop', 'firefox-dev.desktop', ... ]


            It may necessary to log out and log back in before using the icon.






            share|improve this answer




























              0














              Copy the firefox icon file.



              cp /usr/share/applications/firefox.desktop 
              /usr/share/applications/firefox-dev.desktop


              In the new file edit 4 lines, using the full path for the executable and icon. The icon shown below is a blue colored version of the firefox icon.



              [Desktop Entry]
              ...
              Exec=/opt/firefox-dev/firefox
              Icon=/opt/firefox-dev/browser/chrome/icons/default/default128.png
              ...
              [Desktop Action new-window]
              ...
              Exec=/opt/firefox-dev/firefox -new-window
              ...
              [Desktop Action new-private-window]
              ...
              Exec=/opt/firefox-dev/firefox -private-window


              Then follow the instructions here to put the new icon file in the gnome registry.



              sudo apt install dconf-editor
              dconf-editor


              Navigate to org.gnome.shell favorite-apps and add in your new icon



              [ ..., 'firefox.desktop', 'firefox-dev.desktop', ... ]


              It may necessary to log out and log back in before using the icon.






              share|improve this answer


























                0












                0








                0







                Copy the firefox icon file.



                cp /usr/share/applications/firefox.desktop 
                /usr/share/applications/firefox-dev.desktop


                In the new file edit 4 lines, using the full path for the executable and icon. The icon shown below is a blue colored version of the firefox icon.



                [Desktop Entry]
                ...
                Exec=/opt/firefox-dev/firefox
                Icon=/opt/firefox-dev/browser/chrome/icons/default/default128.png
                ...
                [Desktop Action new-window]
                ...
                Exec=/opt/firefox-dev/firefox -new-window
                ...
                [Desktop Action new-private-window]
                ...
                Exec=/opt/firefox-dev/firefox -private-window


                Then follow the instructions here to put the new icon file in the gnome registry.



                sudo apt install dconf-editor
                dconf-editor


                Navigate to org.gnome.shell favorite-apps and add in your new icon



                [ ..., 'firefox.desktop', 'firefox-dev.desktop', ... ]


                It may necessary to log out and log back in before using the icon.






                share|improve this answer













                Copy the firefox icon file.



                cp /usr/share/applications/firefox.desktop 
                /usr/share/applications/firefox-dev.desktop


                In the new file edit 4 lines, using the full path for the executable and icon. The icon shown below is a blue colored version of the firefox icon.



                [Desktop Entry]
                ...
                Exec=/opt/firefox-dev/firefox
                Icon=/opt/firefox-dev/browser/chrome/icons/default/default128.png
                ...
                [Desktop Action new-window]
                ...
                Exec=/opt/firefox-dev/firefox -new-window
                ...
                [Desktop Action new-private-window]
                ...
                Exec=/opt/firefox-dev/firefox -private-window


                Then follow the instructions here to put the new icon file in the gnome registry.



                sudo apt install dconf-editor
                dconf-editor


                Navigate to org.gnome.shell favorite-apps and add in your new icon



                [ ..., 'firefox.desktop', 'firefox-dev.desktop', ... ]


                It may necessary to log out and log back in before using the icon.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 4 at 10:12









                Craig HicksCraig Hicks

                26719




                26719






























                    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%2f1000818%2ffirefox-profiles-with-different-icons-in-ubuntu-dock%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

                    Human spaceflight

                    Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                    File:DeusFollowingSea.jpg