Firefox profiles with different icons in Ubuntu dock











up vote
6
down vote

favorite
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




























    up vote
    6
    down vote

    favorite
    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


























      up vote
      6
      down vote

      favorite
      4









      up vote
      6
      down vote

      favorite
      4






      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 at 11:24









      pomsky

      27.6k1185111




      27.6k1185111










      asked Jan 29 at 0:34









      dln949

      3511412




      3511412






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted
          +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 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 at 11:25










          • I added both, using the exact same string. Result was it used the Firefox icon, not the icon I specified.
            – dln949
            Jul 13 at 17:29






          • 1




            Unfortunately, I don't know. It works for me (I have a custom icon).
            – grisfer
            Jul 13 at 21:16






          • 1




            This bug suggests that gnome is not honoring the --class option
            – JellicleCat
            Nov 30 at 20:31











          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',
          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

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          3
          down vote



          accepted
          +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 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 at 11:25










          • I added both, using the exact same string. Result was it used the Firefox icon, not the icon I specified.
            – dln949
            Jul 13 at 17:29






          • 1




            Unfortunately, I don't know. It works for me (I have a custom icon).
            – grisfer
            Jul 13 at 21:16






          • 1




            This bug suggests that gnome is not honoring the --class option
            – JellicleCat
            Nov 30 at 20:31















          up vote
          3
          down vote



          accepted
          +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 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 at 11:25










          • I added both, using the exact same string. Result was it used the Firefox icon, not the icon I specified.
            – dln949
            Jul 13 at 17:29






          • 1




            Unfortunately, I don't know. It works for me (I have a custom icon).
            – grisfer
            Jul 13 at 21:16






          • 1




            This bug suggests that gnome is not honoring the --class option
            – JellicleCat
            Nov 30 at 20:31













          up vote
          3
          down vote



          accepted
          +100







          up vote
          3
          down vote



          accepted
          +100




          +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 at 21:25

























          answered Jul 12 at 11:36









          grisfer

          1465




          1465












          • 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 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 at 11:25










          • I added both, using the exact same string. Result was it used the Firefox icon, not the icon I specified.
            – dln949
            Jul 13 at 17:29






          • 1




            Unfortunately, I don't know. It works for me (I have a custom icon).
            – grisfer
            Jul 13 at 21:16






          • 1




            This bug suggests that gnome is not honoring the --class option
            – JellicleCat
            Nov 30 at 20:31


















          • 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 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 at 11:25










          • I added both, using the exact same string. Result was it used the Firefox icon, not the icon I specified.
            – dln949
            Jul 13 at 17:29






          • 1




            Unfortunately, I don't know. It works for me (I have a custom icon).
            – grisfer
            Jul 13 at 21:16






          • 1




            This bug suggests that gnome is not honoring the --class option
            – JellicleCat
            Nov 30 at 20:31
















          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 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 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 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 at 11:25












          I added both, using the exact same string. Result was it used the Firefox icon, not the icon I specified.
          – dln949
          Jul 13 at 17:29




          I added both, using the exact same string. Result was it used the Firefox icon, not the icon I specified.
          – dln949
          Jul 13 at 17:29




          1




          1




          Unfortunately, I don't know. It works for me (I have a custom icon).
          – grisfer
          Jul 13 at 21:16




          Unfortunately, I don't know. It works for me (I have a custom icon).
          – grisfer
          Jul 13 at 21:16




          1




          1




          This bug suggests that gnome is not honoring the --class option
          – JellicleCat
          Nov 30 at 20:31




          This bug suggests that gnome is not honoring the --class option
          – JellicleCat
          Nov 30 at 20:31


















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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

          How did Captain America manage to do this?

          迪纳利

          南乌拉尔铁路局