Article 6GGQP Firefox SlackBuild needs MOZ_APP_REMOTINGNAME="firefox" for working taskbar icons on Wayland

Firefox SlackBuild needs MOZ_APP_REMOTINGNAME="firefox" for working taskbar icons on Wayland

by
zuriel
from LinuxQuestions.org on (#6GGQP)
When running Firefox as a Wayland app with MOZ_ENABLE_WAYLAND=1, the default Wayland icon appears on the taskbar instead of the Firefox icon. A minor niggle, so I just now got around to investigating.

The issue seems to be that Firefox's window class doesn't match the application name in the .desktop file, so KDE isn't matching it with the icon. On Slackware, Firefox has the window class "firefox-default" instead of just "firefox".

Firefox gets its name from the update channel set at build time. Firefox built with --enable-update-channel=nightly will identify itself with a window class of "firefox-nightly", for example. Since we're building Firefox with --disable-updater and no update channel, it's naming itself "firefox-default" which KDE isn't recognising.

Explicitly setting the name by building Firefox with MOZ_APP_REMOTINGNAME="firefox" makes it use "firefox" as its window class and KDE then gives it the correct icon.

Code:export MOZ_APP_REMOTINGNAME="firefox" should probably be added to the Firefox SlackBuild.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments