Duplicate applications icons in Ubuntu dockKile icon buggy in left (launcher) bar (ubuntu 18.04)How to create launcher for java program in Ubuntu 17.10 (Gnome+Wayland)Ubuntu 18.04 dock default and custom favorites behaving differentlyMultiple “Dolphin File Manager” icons in dock on Ubuntu 19.04Wolfram Mathematica files do not appear grouped in dockIcon For App is Different Closed than when OpenedDouble Icons of Favorite Applications in the Dock (Firefox Developer Edition) in Ubuntu 18.04Dock icon as a question mark even though the .desktop file valid.A different icon with a different name appears when I click the launcherProblem with Game Icons in Ubuntu DockHow to get steam icons in the Ubuntu dash? Specifically numixNumix-circle icons not effective in Unity-greeterArc Icon theme not inheriting Numix circle iconsHow do I move the “Show Applications” icon in Ubuntu Dock?How to recover from uninstall of gnome-shell-extension-ubuntu-dock in Ubuntu 17.10Using GNOME Paper theme: how do I make my dock appear when hovering on the left side of my screen?My Icon Theme is Not Applying to All Applications On Ubuntu 18.04

"cd" into /sys/kernel/debug/tracing causes permission change

Manager told a colleague of mine I was getting fired soon

Was "чёрствый" ever a synonym for fresh in Russian?

If I travelled back in time to invest in X company to make a fortune, roughly what is the probability that it would fail?

Generating Roman numerals with dice

As a girl, how can I voice male characters effectively?

Did Joe Biden "stop a prosecution" into his son in Ukraine? And did he brag about stopping the prosecution?

Can/should you swim in zero G?

The work of mathematicians outside their professional environment

How to explain that the sums of numerators over sums of denominators isn't the same as the mean of ratios?

Driving test in New Zealand?

How to catch creatures that can predict the next few minutes?

Why is my vegetable stock bitter, but the chicken stock not?

Can I voluntarily exit from the US after a 20 year overstay, or could I be detained at the airport?

Using 4K Skyrim Textures when running 1920 x 1080 display resolution?

Found a minor bug, affecting 1% of users. What should QA do?

Colleague's grant application resembles my PhD thesis

Injection from two strings to one string

What's the correct way to determine turn order in this situation?

Should I hang doors before or after drywall?

Does the DOJ's declining to investigate the Trump-Zelensky call ruin the basis for impeachment?

Parent asking for money after I moved out

Airport Security - advanced check, 4th amendment breach

Is right click on tables bad UX



Duplicate applications icons in Ubuntu dock


Kile icon buggy in left (launcher) bar (ubuntu 18.04)How to create launcher for java program in Ubuntu 17.10 (Gnome+Wayland)Ubuntu 18.04 dock default and custom favorites behaving differentlyMultiple “Dolphin File Manager” icons in dock on Ubuntu 19.04Wolfram Mathematica files do not appear grouped in dockIcon For App is Different Closed than when OpenedDouble Icons of Favorite Applications in the Dock (Firefox Developer Edition) in Ubuntu 18.04Dock icon as a question mark even though the .desktop file valid.A different icon with a different name appears when I click the launcherProblem with Game Icons in Ubuntu DockHow to get steam icons in the Ubuntu dash? Specifically numixNumix-circle icons not effective in Unity-greeterArc Icon theme not inheriting Numix circle iconsHow do I move the “Show Applications” icon in Ubuntu Dock?How to recover from uninstall of gnome-shell-extension-ubuntu-dock in Ubuntu 17.10Using GNOME Paper theme: how do I make my dock appear when hovering on the left side of my screen?My Icon Theme is Not Applying to All Applications On Ubuntu 18.04






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









22















I'm using Ubuntu 17.10 with GNOME shell and Numix-Circle icon theme.



When I hover over the Numix icon for Nightly Web Browser, which is pinned to the dock I get the title "Nightly Web Browser".



enter image description here



But when I launch the program, another icon pops up at the bottom, with the name "Nightly".



enter image description here










share|improve this question
































    22















    I'm using Ubuntu 17.10 with GNOME shell and Numix-Circle icon theme.



    When I hover over the Numix icon for Nightly Web Browser, which is pinned to the dock I get the title "Nightly Web Browser".



    enter image description here



    But when I launch the program, another icon pops up at the bottom, with the name "Nightly".



    enter image description here










    share|improve this question




























      22












      22








      22


      8






      I'm using Ubuntu 17.10 with GNOME shell and Numix-Circle icon theme.



      When I hover over the Numix icon for Nightly Web Browser, which is pinned to the dock I get the title "Nightly Web Browser".



      enter image description here



      But when I launch the program, another icon pops up at the bottom, with the name "Nightly".



      enter image description here










      share|improve this question
















      I'm using Ubuntu 17.10 with GNOME shell and Numix-Circle icon theme.



      When I hover over the Numix icon for Nightly Web Browser, which is pinned to the dock I get the title "Nightly Web Browser".



      enter image description here



      But when I launch the program, another icon pops up at the bottom, with the name "Nightly".



      enter image description here







      17.10 icons gnome-shell ubuntu-dock






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 25 '18 at 11:01









      pomsky

      39.9k12 gold badges131 silver badges159 bronze badges




      39.9k12 gold badges131 silver badges159 bronze badges










      asked Nov 10 '17 at 19:37









      Chantz GarrettChantz Garrett

      1381 silver badge7 bronze badges




      1381 silver badge7 bronze badges























          1 Answer
          1






          active

          oldest

          votes


















          35
















          You need to add a proper StartupWMClass line to the .desktop launcher corresponding to the application (refer to this). Follow these steps:



          1. Open Files and go to your /usr/share/applications folder. Look for the "Nightly" file (i.e. the launcher for the application you want to fix) and copy it.

          2. Paste the file in ~/.local/share/applications. It should look like a file with the name <filename>.desktop.

          3. Right click on this .desktop file and open with Text Editor.

          4. Launch "Nightly" (i.e. the application you want to fix) from "Activities".

          5. Run xprop WM_CLASS in Terminal.

          6. Place the cursor over the opened "Nightly" window. The cursor should turn into a crosshair already. Click. You should get a WM_CLASS string for "Nightly" in Terminal.


          7. In the .desktop file opened in Text Editor and add the following line



            StartupWMClass=OBTAINED-VALUE


            In place of OBTAINED-VALUE put a value you got from step 6 without any quotes.



          8. Save the .desktop file.





          share|improve this answer






















          • 2





            I am trying to do the same with PyCharm. Got "sun-awt-X11-XFramePeer", "jetbrains-pycharm-ce" as the output for step 6. I used StartupWMClass=jetbrains-pycharm-ce and it works.

            – d4nyll
            Jan 11 '18 at 15:59






          • 4





            9. Rename .desktop file to OBTAINED-VALUE.desktop (e.g. jetbrains-phpstorm.desktop instead phpstorm.desktop), works in Ubuntu 18.04

            – Aleksey Deryagin
            Jul 12 '18 at 16:29







          • 1





            Thank you for the answer. It would be really nice to have an explanation of what happens. I don't want to blindly follow some instructions. What is going on and what does the fix do? Would be great if someone could help out.

            – marts
            Jan 26 at 12:03






          • 1





            @marts Please go through this for an explanations: askubuntu.com/questions/367396/…

            – pomsky
            Jan 26 at 12:05











          • @AlekseyDeryagin In step 6, I got WM_CLASS: not found. As the misbehaving application was kile and the name of the file org.kde.kile.desktop, I just added the line StartupWMClass=kile and it works. My wild guess is that the last full-stop separated part of the filename (right before .desktop) should match the StartupWMClass value.

            – Ansa211
            Feb 11 at 12:57












          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/4.0/"u003ecc by-sa 4.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%2f975178%2fduplicate-applications-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









          35
















          You need to add a proper StartupWMClass line to the .desktop launcher corresponding to the application (refer to this). Follow these steps:



          1. Open Files and go to your /usr/share/applications folder. Look for the "Nightly" file (i.e. the launcher for the application you want to fix) and copy it.

          2. Paste the file in ~/.local/share/applications. It should look like a file with the name <filename>.desktop.

          3. Right click on this .desktop file and open with Text Editor.

          4. Launch "Nightly" (i.e. the application you want to fix) from "Activities".

          5. Run xprop WM_CLASS in Terminal.

          6. Place the cursor over the opened "Nightly" window. The cursor should turn into a crosshair already. Click. You should get a WM_CLASS string for "Nightly" in Terminal.


          7. In the .desktop file opened in Text Editor and add the following line



            StartupWMClass=OBTAINED-VALUE


            In place of OBTAINED-VALUE put a value you got from step 6 without any quotes.



          8. Save the .desktop file.





          share|improve this answer






















          • 2





            I am trying to do the same with PyCharm. Got "sun-awt-X11-XFramePeer", "jetbrains-pycharm-ce" as the output for step 6. I used StartupWMClass=jetbrains-pycharm-ce and it works.

            – d4nyll
            Jan 11 '18 at 15:59






          • 4





            9. Rename .desktop file to OBTAINED-VALUE.desktop (e.g. jetbrains-phpstorm.desktop instead phpstorm.desktop), works in Ubuntu 18.04

            – Aleksey Deryagin
            Jul 12 '18 at 16:29







          • 1





            Thank you for the answer. It would be really nice to have an explanation of what happens. I don't want to blindly follow some instructions. What is going on and what does the fix do? Would be great if someone could help out.

            – marts
            Jan 26 at 12:03






          • 1





            @marts Please go through this for an explanations: askubuntu.com/questions/367396/…

            – pomsky
            Jan 26 at 12:05











          • @AlekseyDeryagin In step 6, I got WM_CLASS: not found. As the misbehaving application was kile and the name of the file org.kde.kile.desktop, I just added the line StartupWMClass=kile and it works. My wild guess is that the last full-stop separated part of the filename (right before .desktop) should match the StartupWMClass value.

            – Ansa211
            Feb 11 at 12:57















          35
















          You need to add a proper StartupWMClass line to the .desktop launcher corresponding to the application (refer to this). Follow these steps:



          1. Open Files and go to your /usr/share/applications folder. Look for the "Nightly" file (i.e. the launcher for the application you want to fix) and copy it.

          2. Paste the file in ~/.local/share/applications. It should look like a file with the name <filename>.desktop.

          3. Right click on this .desktop file and open with Text Editor.

          4. Launch "Nightly" (i.e. the application you want to fix) from "Activities".

          5. Run xprop WM_CLASS in Terminal.

          6. Place the cursor over the opened "Nightly" window. The cursor should turn into a crosshair already. Click. You should get a WM_CLASS string for "Nightly" in Terminal.


          7. In the .desktop file opened in Text Editor and add the following line



            StartupWMClass=OBTAINED-VALUE


            In place of OBTAINED-VALUE put a value you got from step 6 without any quotes.



          8. Save the .desktop file.





          share|improve this answer






















          • 2





            I am trying to do the same with PyCharm. Got "sun-awt-X11-XFramePeer", "jetbrains-pycharm-ce" as the output for step 6. I used StartupWMClass=jetbrains-pycharm-ce and it works.

            – d4nyll
            Jan 11 '18 at 15:59






          • 4





            9. Rename .desktop file to OBTAINED-VALUE.desktop (e.g. jetbrains-phpstorm.desktop instead phpstorm.desktop), works in Ubuntu 18.04

            – Aleksey Deryagin
            Jul 12 '18 at 16:29







          • 1





            Thank you for the answer. It would be really nice to have an explanation of what happens. I don't want to blindly follow some instructions. What is going on and what does the fix do? Would be great if someone could help out.

            – marts
            Jan 26 at 12:03






          • 1





            @marts Please go through this for an explanations: askubuntu.com/questions/367396/…

            – pomsky
            Jan 26 at 12:05











          • @AlekseyDeryagin In step 6, I got WM_CLASS: not found. As the misbehaving application was kile and the name of the file org.kde.kile.desktop, I just added the line StartupWMClass=kile and it works. My wild guess is that the last full-stop separated part of the filename (right before .desktop) should match the StartupWMClass value.

            – Ansa211
            Feb 11 at 12:57













          35














          35










          35









          You need to add a proper StartupWMClass line to the .desktop launcher corresponding to the application (refer to this). Follow these steps:



          1. Open Files and go to your /usr/share/applications folder. Look for the "Nightly" file (i.e. the launcher for the application you want to fix) and copy it.

          2. Paste the file in ~/.local/share/applications. It should look like a file with the name <filename>.desktop.

          3. Right click on this .desktop file and open with Text Editor.

          4. Launch "Nightly" (i.e. the application you want to fix) from "Activities".

          5. Run xprop WM_CLASS in Terminal.

          6. Place the cursor over the opened "Nightly" window. The cursor should turn into a crosshair already. Click. You should get a WM_CLASS string for "Nightly" in Terminal.


          7. In the .desktop file opened in Text Editor and add the following line



            StartupWMClass=OBTAINED-VALUE


            In place of OBTAINED-VALUE put a value you got from step 6 without any quotes.



          8. Save the .desktop file.





          share|improve this answer















          You need to add a proper StartupWMClass line to the .desktop launcher corresponding to the application (refer to this). Follow these steps:



          1. Open Files and go to your /usr/share/applications folder. Look for the "Nightly" file (i.e. the launcher for the application you want to fix) and copy it.

          2. Paste the file in ~/.local/share/applications. It should look like a file with the name <filename>.desktop.

          3. Right click on this .desktop file and open with Text Editor.

          4. Launch "Nightly" (i.e. the application you want to fix) from "Activities".

          5. Run xprop WM_CLASS in Terminal.

          6. Place the cursor over the opened "Nightly" window. The cursor should turn into a crosshair already. Click. You should get a WM_CLASS string for "Nightly" in Terminal.


          7. In the .desktop file opened in Text Editor and add the following line



            StartupWMClass=OBTAINED-VALUE


            In place of OBTAINED-VALUE put a value you got from step 6 without any quotes.



          8. Save the .desktop file.






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 26 at 12:23

























          answered Nov 10 '17 at 23:00









          pomskypomsky

          39.9k12 gold badges131 silver badges159 bronze badges




          39.9k12 gold badges131 silver badges159 bronze badges










          • 2





            I am trying to do the same with PyCharm. Got "sun-awt-X11-XFramePeer", "jetbrains-pycharm-ce" as the output for step 6. I used StartupWMClass=jetbrains-pycharm-ce and it works.

            – d4nyll
            Jan 11 '18 at 15:59






          • 4





            9. Rename .desktop file to OBTAINED-VALUE.desktop (e.g. jetbrains-phpstorm.desktop instead phpstorm.desktop), works in Ubuntu 18.04

            – Aleksey Deryagin
            Jul 12 '18 at 16:29







          • 1





            Thank you for the answer. It would be really nice to have an explanation of what happens. I don't want to blindly follow some instructions. What is going on and what does the fix do? Would be great if someone could help out.

            – marts
            Jan 26 at 12:03






          • 1





            @marts Please go through this for an explanations: askubuntu.com/questions/367396/…

            – pomsky
            Jan 26 at 12:05











          • @AlekseyDeryagin In step 6, I got WM_CLASS: not found. As the misbehaving application was kile and the name of the file org.kde.kile.desktop, I just added the line StartupWMClass=kile and it works. My wild guess is that the last full-stop separated part of the filename (right before .desktop) should match the StartupWMClass value.

            – Ansa211
            Feb 11 at 12:57












          • 2





            I am trying to do the same with PyCharm. Got "sun-awt-X11-XFramePeer", "jetbrains-pycharm-ce" as the output for step 6. I used StartupWMClass=jetbrains-pycharm-ce and it works.

            – d4nyll
            Jan 11 '18 at 15:59






          • 4





            9. Rename .desktop file to OBTAINED-VALUE.desktop (e.g. jetbrains-phpstorm.desktop instead phpstorm.desktop), works in Ubuntu 18.04

            – Aleksey Deryagin
            Jul 12 '18 at 16:29







          • 1





            Thank you for the answer. It would be really nice to have an explanation of what happens. I don't want to blindly follow some instructions. What is going on and what does the fix do? Would be great if someone could help out.

            – marts
            Jan 26 at 12:03






          • 1





            @marts Please go through this for an explanations: askubuntu.com/questions/367396/…

            – pomsky
            Jan 26 at 12:05











          • @AlekseyDeryagin In step 6, I got WM_CLASS: not found. As the misbehaving application was kile and the name of the file org.kde.kile.desktop, I just added the line StartupWMClass=kile and it works. My wild guess is that the last full-stop separated part of the filename (right before .desktop) should match the StartupWMClass value.

            – Ansa211
            Feb 11 at 12:57







          2




          2





          I am trying to do the same with PyCharm. Got "sun-awt-X11-XFramePeer", "jetbrains-pycharm-ce" as the output for step 6. I used StartupWMClass=jetbrains-pycharm-ce and it works.

          – d4nyll
          Jan 11 '18 at 15:59





          I am trying to do the same with PyCharm. Got "sun-awt-X11-XFramePeer", "jetbrains-pycharm-ce" as the output for step 6. I used StartupWMClass=jetbrains-pycharm-ce and it works.

          – d4nyll
          Jan 11 '18 at 15:59




          4




          4





          9. Rename .desktop file to OBTAINED-VALUE.desktop (e.g. jetbrains-phpstorm.desktop instead phpstorm.desktop), works in Ubuntu 18.04

          – Aleksey Deryagin
          Jul 12 '18 at 16:29






          9. Rename .desktop file to OBTAINED-VALUE.desktop (e.g. jetbrains-phpstorm.desktop instead phpstorm.desktop), works in Ubuntu 18.04

          – Aleksey Deryagin
          Jul 12 '18 at 16:29





          1




          1





          Thank you for the answer. It would be really nice to have an explanation of what happens. I don't want to blindly follow some instructions. What is going on and what does the fix do? Would be great if someone could help out.

          – marts
          Jan 26 at 12:03





          Thank you for the answer. It would be really nice to have an explanation of what happens. I don't want to blindly follow some instructions. What is going on and what does the fix do? Would be great if someone could help out.

          – marts
          Jan 26 at 12:03




          1




          1





          @marts Please go through this for an explanations: askubuntu.com/questions/367396/…

          – pomsky
          Jan 26 at 12:05





          @marts Please go through this for an explanations: askubuntu.com/questions/367396/…

          – pomsky
          Jan 26 at 12:05













          @AlekseyDeryagin In step 6, I got WM_CLASS: not found. As the misbehaving application was kile and the name of the file org.kde.kile.desktop, I just added the line StartupWMClass=kile and it works. My wild guess is that the last full-stop separated part of the filename (right before .desktop) should match the StartupWMClass value.

          – Ansa211
          Feb 11 at 12:57





          @AlekseyDeryagin In step 6, I got WM_CLASS: not found. As the misbehaving application was kile and the name of the file org.kde.kile.desktop, I just added the line StartupWMClass=kile and it works. My wild guess is that the last full-stop separated part of the filename (right before .desktop) should match the StartupWMClass value.

          – Ansa211
          Feb 11 at 12:57


















          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%2f975178%2fduplicate-applications-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

          Tamil (spriik) Luke uk diar | Nawigatjuun

          Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

          Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?