Skip to content

Commit 4010509

Browse files
committed
linux: Check for no desktop portal being present
1 parent 42e3ec3 commit 4010509

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

checks/linux.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ def checkWayland(lines):
9696
return [LEVEL_CRITICAL, "Running under XWayland",
9797
"OBS is running under XWayland, which prevents OBS from being able to capture.<br>To fix that, you will need to run OBS with the following command in a terminal:<p><code>obs -platform wayland</code></p>"]
9898

99-
hasNoPipewireCapture = search('[pipewire] No capture', lines)
100-
if len(hasNoPipewireCapture) > 0:
99+
hasPipewirePortal = search('[pipewire]', lines)
100+
hasNoPipewireCapture = search('[pipewire] No capture', hasPipewirePortal)
101+
if not hasPipewirePortal or hasNoPipewireCapture:
101102
return [LEVEL_CRITICAL, "No PipeWire capture on Wayland",
102103
"""In order to capture displays or windows under Wayland, OBS requires the appropriate PipeWire capture portal for your Desktop Environment.<br><br>
103104
An overview of available capture portals can be found on the Arch Linux Wiki:<br>

0 commit comments

Comments
 (0)