mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6130] obs: black screen during screen capture and desktop portal error (pipewire) #3194
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#3194
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 @rsramkis on GitHub (Dec 14, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6130
Description
When Firejail is enabled (sudo firecfg) and Wayland session is used in either Gnome 45 or KDE 5.27.10 we get:
When Pipewire Screen capture is turned on we get a blank screen.
The following error shows in the terminal:
Steps to Reproduce
Steps to reproduce the behavior
Log into Gnome or KDE with a Wayland Session.
Firejail is Enabled.
Open Terminal and launch OBS with "obs' command.
The Pipewire Screen capture option will be enabled. The following will show in the terminal:
Expected behavior
OBS should start and show you a preview of the screen you wish to record.
Actual behavior
OBS starts but there is a blank black screen with the reported GDBUS.Error.
Behavior without a profile
In terminal I tried launching OBS with "obs --noprofile" and still I was getting a black screen for screen recorder preview.
Additional context
n\a
Environment
OBS 30.0.0-1
System:
Arch Linux
Kernel: 6.1.67-1-lts arch: x86_64 bits: 64
Desktop: KDE Plasma: 5.27.10
Distro: EndeavourOS
Graphics:
Device-1: Intel HD Graphics 5500 driver: i915 v: kernel
firejail --version
Checklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)Log
Included in description.
@kmk3 commented on GitHub (Dec 14, 2023):
What happens if you add the following to ~/.config/firejail/obs.local?
@rsramkis commented on GitHub (Dec 14, 2023):
I created the obs.local file with the inclue statement and it looks like I am getting the same error:
@rusty-snake commented on GitHub (Dec 14, 2023):
@kmk3 commented on GitHub (Dec 14, 2023):
@rusty-snake on Dec 14:
@rsramkis
Note that firejail now keeps the pipewire group (see #5992) if that's the
issue.
Does it work with firejail-git?
Was this setup working in a previous version of the program/environment?
If so, which versions were used?
@rsramkis on Dec 14:
What is the output of the following?
@rsramkis commented on GitHub (Dec 14, 2023):
Hi Rusty Snake
I changed my obs.local file to as follows. I noticed that obs can see
obs.local:
Output from terminal:
@rsramkis commented on GitHub (Dec 14, 2023):
Good Morning Kelvin,
Thank you for your feedback. I will answer your questions below:
I don't use obs that often (maybe couple times a year when I am testing something between updates). Most of the time I am in Gnome desktop, I use the built in screen capture utility (press print screen) and then take a still or use video recording which still works now.
I ended up testing obs last night because of the recent update to 30.0.0-1 as well as it moving to qt6. Thats when I notice obs could not screen capture but Gnome Screen recorder was working. OBS was seeing my audio and mic, just no video.
I have not tested firejail-git yet. Question, when will the current approved changes go into a final release? Usually I wait for that.
What is the output of the following:
Note:
(a) firejail --noprofile /usr/bin/obs
(b) firejail --profile=noprofile /usr/bin/obs
@kmk3 commented on GitHub (Dec 14, 2023):
Greetings.
I see, thanks for the details.
If you could test it later it would be helpful to know whether the profile
works as is with pipewire or if
norootor other changes are needed.You could install firejail-git from the AUR, test and then reinstall firejail.
Also, what is the output of
groups?From #6065, it looks like it will be in January.
@rsramkis commented on GitHub (Dec 15, 2023):
Since firejail is aiming for January 2024, can we hold this bug open and I will re-test then? Just I use firejail system wide and I'd like to do a more comprehensive test.
@andrewfader commented on GitHub (Mar 24, 2024):
I appear to have a similar problem
[pipewire] Error creating screencast session: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed:@rsramkis commented on GitHub (Apr 2, 2024):
Hi Kelvin,
I wanted to provide you with an update after a firejail update came down via Arch Repositories (stable):
Looks like I still have to use the obs.local file with the line "ignore noroot" in it to allow obs to see my screen for capture.
I still see this error when obs starts:
@kmk3 commented on GitHub (Apr 3, 2024):
Hello, this is still the same version; there hasn't been a release yet.