2

I've got firefox (from apt) and firefox-nightly (from zip) installed at the same time, with two separate desktop entries.

However, when I launch firefox nightly, it's associated with the wrong launcher icon:

launcher icons

Firefox-nightly has a custom .desktop file with the following:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Icon=/opt/firefox/browser/chrome/icons/default/default128.png
Exec=/opt/firefox/firefox -P clean %u
Name=Nightly
Comment=Nightly
Terminal=false
Hidden=false
MimeType=x-scheme-handler/unknown;x-scheme-handler/about;x-scheme-handler/https;x-scheme-handler/http;text/html

How does ubuntu decide which applications are running for the purposes of showing in the dock and how do I fix my .desktop entry?

  • 1
    Can't reproduce, I copied/pasted /usr/share/applcations/firefox.desktop, named firefox-nightly, changed the Exec and Icon accordingly, and it's displayed just fine. Maybe this helps. – schrodigerscatcuriosity Oct 29 '19 at 23:11
  • 1
    Adding a correct StartupWMClass entry to your .desktop file should fix it. Please refer to this and report back. – pomsky Oct 30 '19 at 6:59
  • 1
    @guillermochamorro It seems this is a wayland issue; it works correctly under X. – 9fd2d52935ca Oct 30 '19 at 21:00
1

Fix seems to be as described here: https://bugzilla.redhat.com/show_bug.cgi?id=1585369

E.g.

Exec=/opt/firefox/firefox --name Nightly -P clean %u
StartupWMClass=Nightly
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.