-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
firefox: theme changes are not picked up automatically #5062
Comments
Does |
It does not (this was already in my Which portal do you think plays a part here? Keep in mind that the settings portal is likely inaccessible: flatpak/xdg-desktop-portal#737 |
Then try with |
Firefox has code using it |
Yup, that's the portal affected by flatpak/xdg-desktop-portal#737. I'm working on a fix for that. |
Got theme changes via darkman working with:
|
I think it's safe to close this; there seems to be a workaround. |
I still don't quite fully understand what The docs indicate that
So does |
There's plenty of confusion on the need for |
I'm not using Wayland yet, still on X11. Not using |
@polyzen In that case, under the conditions OP stated (no GTK_THEME env var and no defined theme in $HOME/.config/gtk-3.0/settings.ini) a firejailed Firefox follows GTK theme changes, regardless of how it is changed (gsettings, GNOME tweaks, that darkman, etcetera) without ignore noroot $ cat ~/.config/firejail/firefox.local
dbus-user.talk ca.desrt.dconf |
I have darkman changing my theme via xdg-desktop-portal (sorry, I should have been more detailed): I don't think I've ever had |
Pineapples and bananas.
It does not create a new user-namespace hence no additional ptrace access mode restrictions. |
From my understanding of this code: It creates a new empty user namespace (with no users or groups mapped) and only It then also conditionally maps certain supplementary groups. That is, other users and groups do not exist in the new user namespace. For example, given the following "foo" directory:
If the current user ("user5") is part of "group1", then the "foo" directory See also
That just makes firejail ignore subsequent |
This is a very clear explanation, thanks. The user inside the sandbox ends up being the same one as on the host (e.g.: same UID), which explains why the xdg-desktop-portal's checks works -- because the current user owns the root of the sandbox's file-system and therefore the portal can read its contents.
This is one of those items where I think that Firejail's interface can improve dramatically: because every time I try to reason about this, I no longer understand what's going on until I go back and read your previous explanation again. It's just a bit of a puzzle to reason about:
So Doesn't it make more sense to remove |
No. The default does not change users.
No. There is no concept of external users and users are identity mapped. The cause remains to be the ptrace access mode.
Does it make sense to remove [under security option here] from most profiles? |
( |
Firefox does not pick up gtk theme changes automatically when running under firejail, but it does when running without firejail.
Changing the gtk theme on-the-fly only works when configuring it via dconf, so in order to reproduce this, make sure that the
GTK_THEME
environment variable is not set and that$HOME/.config/gtk-3.0/settings.ini
does not define any theme either.To change a theme, use something like:
Make sure you're specifying themes that are installed locally.
The text was updated successfully, but these errors were encountered: