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: 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

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. org.freedesktop.Notifications
# Allow to inhibit screensavers org.freedesktop.ScreenSaver
# Plasma browser integration
dbus-user.own org.mpris.MediaPlayer2.plasma-browser-integration org.kde.JobViewServer org.kde.kuiserver
ignore dbus-user none

Thank you, rusty-snake for pointing this out.

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