PSA How to Allow for Screen Sharing in Firefox when Firejail Sandbox is enabled

When firejail is enabled system wide in Gnome, you will not be able to share your desktop screen via Firefox.

Solution

This can be fixed by allowing the required DBUS message in Linux.

  1. Create a local Firejail Firefox configuration file.

touch ~/.config/firejail/firefox.local

  1. Add the following contents to the firefox.local file:

dbus-user.talk org.freedesktop.portal.Desktop

  1. Use the following Test Page to verify Screen Capture is allowed.

https://mozilla.github.io/webrtc-landing/gum_test.html

Source:

https://wiki.archlinux.org/title/Screen_capture#Via_the_WebRTC_protocol
https://wiki.archlinux.org/title/PipeWire#WebRTC_screen_sharing

1 Like