DEV Community

Discussion on: How to setup Firefox Developer Edition on Ubuntu

Collapse
 
drfcozapata profile image
Francisco Zapata • Edited

Thanks a lot bro!!!
Only one note: "StartupWMClass=Navigator" worked for me to avoid duplicated icon on dock
I have Ubuntu 22.04

Collapse
 
46and2 profile image
46and2

For some reason it didn't help. I had to set it to StartupWMClass=firefox-aurora on my Ubuntu 22.04.1.

Collapse
 
andreithedeveloper profile image
andrei-the-developer

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.