Skip to content

Commit d4bf2ac

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

checks/linux.py

Lines changed: 2 additions & 1 deletion
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+
hasPipewirePortal = search('[pipewire]', lines)
99100
hasNoPipewireCapture = search('[pipewire] No capture', lines)
100-
if len(hasNoPipewireCapture) > 0:
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)