This issue is likely related to the .desktop file of your Firefox Developer Edition. Specifically, the StartupWMClass property in the .desktop file may not be set correctly. The StartupWMClass property helps the GNOME Shell to associate the running application instance with the correct .desktop file and, consequently, the right icon in the dock.
To fix the issue, follow these steps:
1)Open the Firefox Developer Edition and then open a terminal.
2)In the terminal, run the following command to get the WM_CLASS property of the Firefox Developer Edition:
xprop WM_CLASS
After running the command, your cursor will turn into a crosshair. Click on the Firefox Developer Edition window. The terminal will display the WM_CLASS value, which should look something like this:
Take note of the second value (in this example, "Firefox Developer Edition").
3) Open the .desktop file for Firefox Developer Edition with a text editor. The file should be located in ~/.local/share/applications/ and named firefox_dev.desktop. If you can't find it there, look for it in /usr/share/applications/.
4) In the .desktop file, find the StartupWMClass line and update its value to match the second WM_CLASS value you found in step 2. In this example, the updated line should look like this:
StartupWMClass=Firefox Developer Edition
5) Save the changes to the .desktop file and close the text editor.
6) Restart your Firefox Developer Edition, and the issue should be resolved. The new instance should now be associated with the existing icon in the dock.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
For some reason it didn't help. I had to set it to
StartupWMClass=firefox-aurora
on my Ubuntu 22.04.1.This issue is likely related to the .desktop file of your Firefox Developer Edition. Specifically, the StartupWMClass property in the .desktop file may not be set correctly. The StartupWMClass property helps the GNOME Shell to associate the running application instance with the correct .desktop file and, consequently, the right icon in the dock.
To fix the issue, follow these steps:
1)Open the Firefox Developer Edition and then open a terminal.
2)In the terminal, run the following command to get the WM_CLASS property of the Firefox Developer Edition:
xprop WM_CLASS
After running the command, your cursor will turn into a crosshair. Click on the Firefox Developer Edition window. The terminal will display the WM_CLASS value, which should look something like this:
WM_CLASS(STRING) = "firefox", "Firefox Developer Edition"
Take note of the second value (in this example, "Firefox Developer Edition").
3) Open the .desktop file for Firefox Developer Edition with a text editor. The file should be located in ~/.local/share/applications/ and named firefox_dev.desktop. If you can't find it there, look for it in /usr/share/applications/.
nano ~/.local/share/applications/firefox_dev.desktop
4) In the .desktop file, find the StartupWMClass line and update its value to match the second WM_CLASS value you found in step 2. In this example, the updated line should look like this:
StartupWMClass=Firefox Developer Edition
5) Save the changes to the .desktop file and close the text editor.
6) Restart your Firefox Developer Edition, and the issue should be resolved. The new instance should now be associated with the existing icon in the dock.