firejail prevents Firefox from deactivating screen dimming during video watch C

While watching videos on Youtube I have to periodically press some buttons to keep LCD backlit on if Firefox is firejailed. If Firefox isn't firejailed, the backlit stays on. firejail: 0.9.64.4 Firefox: all versions past last couple of years Distro: Gentoo linux current stable

~/.config/firejail/firefox.profile: include firefox.local include globals.local noblacklist ${HOME}/.cache/mozilla noblacklist ${HOME}/.mozilla mkdir ${HOME}/.cache/mozilla/firefox mkdir ${HOME}/.mozilla whitelist ${HOME}/.cache/mozilla/firefox whitelist ${HOME}/.mozilla whitelist ${HOME}/.local/share/data/qBittorrent whitelist ${HOME}/downloads whitelist ${RUNUSER}/org.keepassxc.KeePassXC.BrowserServer whitelist ${RUNUSER}/kpxc_server whitelist /tmp/krb5cc_1000 include firefox-common.profile

Did a search through the internet, but found nothing corresponding to this problem.

Asked Oct 09 '21 08:10
avatar e-pirate
e-pirate

2 Answer:

I had to add the whole section, to make this work:

dbus-user filter
dbus-user.own org.mozilla.Firefox.*
dbus-user.own org.mozilla.firefox.*
dbus-user.own org.mpris.MediaPlayer2.firefox.*
# Enable native notifications.
dbus-user.talk org.freedesktop.Notifications
# Allow to inhibit screensavers
dbus-user.talk org.freedesktop.ScreenSaver
# Plasma browser integration
dbus-user.own org.mpris.MediaPlayer2.plasma-browser-integration
dbus-user.talk org.kde.JobViewServer
dbus-user.talk org.kde.kuiserver
ignore dbus-user none

Thank you, rusty-snake for pointing this out.

1
Answered Mar 12 '21 at 14:17
avatar  of e-pirate
e-pirate