I'm using Ubuntu 22.04.1 LTS and I installed Firefox Developer Edition Version=109.0
I came up with same problem, Here I paste my .desktop code,
Before (Wrong):-
[Desktop Entry]
Encoding=UTF-8
Name=Mozilla Firefox
GenericName=Web Browser
Comment=Firefox Developer Edition
Exec=/opt/firefox/firefox
Icon=/opt/firefox/browser/chrome/icons/default/default128.png
Terminal=false
Type=Application
Categories=Application;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;
StartupNotify=True
X-GNOME-Autostart-enabled=false
Version=109.0
After (Working):-
[Desktop Entry]
Encoding=UTF-8
Name=Mozilla Firefox
GenericName=Web Browser
Comment=Firefox Developer Edition
Exec=/opt/firefox/firefox
Icon=/opt/firefox/browser/chrome/icons/default/default128.png
Terminal=false
Type=Application
Categories=Application;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;
StartupNotify=True
X-GNOME-Autostart-enabled=false
Version=109.0
StartupWMClass=firefox-aurora
Now its working correctly.
Hint:-
I tried all the above answers before posting my answer(this),
- Launch the application
- Fire up a terminal and run
xprop WM_CLASS
. Click on the window of the the application that is running with a duplicate icon.
When I run xprop WM_CLASS
, I can't see any output as mentioned in those answers.
Then how do I solve this?
When I mouse over the additional app icon in taskbar, It displayed firefox-aurora
I just read the application.ini
file from firefox installation folder and found RemotingName=firefox-aurora
so I copied firefox-aurora name to StartupWMClass=firefox-aurora
In place of firefox-aurora
I also tried firefox
(because its the executable file name), but it didn't work for me.
/opt
? Also, is it on your$PATH
? How by specifying onlyAptanaStudio3
in your desktop file it is able to run? – hytromo Jan 29 '14 at 06:42