mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3699] Firefox can't inhibit screensavers/screen blanking #2330
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#2330
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jmetrius on GitHub (Oct 26, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3699
Bug and expected behavior
Firefox fails to inhibit screen blanking or screensavers while playing videos using the default profile. This is because the profile does not allow screensaver inhibiton via DBus (org.freedesktop.ScreenSaver)
The issue is resolved by adding
dbus-user.talk org.freedesktop.ScreenSaverto /etc/firejail/firefox.localNo profile and disabling firejail
Works fine without a profile
Reproduce
Steps to reproduce the behavior:
firejail firefoxand watch a video (e.g. on YouTube)Environment
Additional context
dbus-monitor --session reports the following necessary calls for screensaver inhibition:
Proposed solution
Add
dbus-user.talk org.freedesktop.ScreenSaverto the default profile or selectively allow the Inhibit/UnInhibit methods using dbus-user.call. I think the second one would be a better solution but i failed to write a rule for that. I tried something likedbus-user.call org.freedesktop.ScreenSaver=org.freedesktop.ScreenSaver.Inhibit@/ScreenSaverbut that seems to be invalid?Checklist
https://github.com/netblue30/firejail/issues/1139)--profile=PROFILENAMEis used to set the right profile.@rusty-snake commented on GitHub (Oct 26, 2020):
dbus-user.call org.freedesktop.ScreenSaver=org.freedesktop.ScreenSaver.Inhibit@/org/freedesktop/ScreenSaverseems to work. However call and broadcast rules are terrible to maintain without #3412/#3424.