Open Bug 1720593 Opened 3 years ago Updated 8 months ago

Firefox Flatpak does not integrate with the desktop in KDE Plasma.

Categories

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

Firefox 90
defect

Tracking

()

UNCONFIRMED

People

(Reporter: sacos16605, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

6.01 MB, image/png
Details
Attached image 1.png

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0

Steps to reproduce:

1- Use KDE Plasma and choose the default dark theme (Breeze Dark) in the system settings.
2- Install Firefox as a Flatpak app.
3- You will probably get Gnome's "Adwaita" (light) theme instead of Breeze Dark.
Sometimes when you start Firefox, it may randomly switch to the Breeze (light) theme, but it will never use Breeze Dark as it should.

Actual results:

Firefox doesn't follow the theme I'm using.
All other Flatpak apps I have follow the system theming without major problems so it's not a Flatpak issue.

Expected results:

Firefox should automatically detect and apply the correct theme.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Summary: Firefox Flatpak doesn't follow the Breeze Dark theme in KDE Plasma. → Firefox Flatpak does not integrate with the desktop in KDE Plasma.
Blocks: flatpak, gtktheme
Priority: -- → P3
See Also: → 1734073

The dark theme works with the wayland backend:

flatpak run --devel --command=sh org.mozilla.firefox
[📦 org.mozilla.firefox ~]$ MOZ_ENABLE_WAYLAND=1 firefox

Using x11 backend for the gtk3-widget-factory

GDK_BACKEND=x11 gtk3-widget-factory

shows wrong theme too.

So it's related to x11. I'm not sure if this is going to be fixed for x11 backend.

UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0

I got this bug on KDE Plasma 5.27.10, but just when using the wayland session, on X11 firefox works properly and uses the proper cursor style.
On ArchLinux wiki for KDE it says that it needs an extra package so that firefox can read the config from GSettings, but after installing said package it still does not work.

If I "flatpak enter <firefox sandbox> gsettings get org.gnome.desktop.interface cursor-theme" it shows 'Adwaita'.

Is there a permission that must be granted so that the sandbox can get the user permissions?

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: