Open Bug 1107281 Opened 10 years ago Updated 1 year ago

Add StartupWMClass to fix double Firefox icon in docky and plank

Categories

(Core :: Widget: Gtk, defect, P5)

34 Branch
x86_64
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: orschiro, Unassigned)

References

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0 Build ID: 20141201171754 Steps to reproduce: On every update of Firefox, its icon is displayed twice in Plank launcher bar (default launcher of ElementaryOS). The issue is described here in more detail: http://kb.openstudioproject.com/content/fix-double-google-chrome-icon-docky-and-plank A solution is to add the following line to 'firefox.desktop': StartupWMClass=Firefox Would it be possible to add this line? I contacted the package manager of my Arch Linux distribution and he responded that 'firefox.desktop' should not be modified on a distribution level but upstream. Thanks for your comments! Robert
There's already a StartupWMClass line here: http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/installer/linux/rpm/mozilla.desktop which should end up being "firefox-bin", AIUI. Not sure if/how that's wrong, or whether it matches the one in ArchLinux, or how that one's generated. Can you clarify some of these questions?
Component: Untriaged → Widget: Gtk
Flags: needinfo?(orschiro)
Product: Firefox → Core
Hi Gijs, Thanks for pointing that out. I think I need to file another bug for the Arch Linux package. It seems it does ship its own firefox.desktop: https://projects.archlinux.org/svntogit/packages.git/plain/trunk/firefox.desktop?h=packages/firefox Please keep this issue open until I report back the result from the Arch Bug tracker. Thank you, Robert
Flags: needinfo?(orschiro)

It seems StartupWMClass is not present in the .desktop file of the Flatpak version.
Adding StartupWMClass=Firefox in the desktop entry fixes the duplicate icon on Plank & elementaryOS.

(In reply to simsbruno2002 from comment #4)

It seems StartupWMClass is not present in the .desktop file of the Flatpak version.

Seems this is bug 1640153.

See Also: → 1640153
Severity: normal → S3

It seems StartupWMClass is missing the .desktop file of the Snap version too.

Do you mind to create such patch? How-to is here:
https://moz-conduit.readthedocs.io/en/latest/phabricator-user.html
Thanks.

Flags: needinfo?(tibor.kovacs30)

(In reply to Martin Stránský [:stransky] (ni? me) from comment #7)

Do you mind to create such patch? How-to is here:
https://moz-conduit.readthedocs.io/en/latest/phabricator-user.html
Thanks.

Unfortunately I'm really not a developer, only found the problem, but don't know the structure of firefox or snap good enough

Flags: needinfo?(tibor.kovacs30)
You need to log in before you can comment on or make changes to this bug.