You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Linux logs output (typically) 3 separate bullet points for the
system information (Distro, Display Server, Desktop Environment), which
looks odd and lengthens the page or bot summary.
Since all are merely informational and without help texts, this combines
all 3 points into a single one. The Flatpak extension helptext is shown
alongside it when appropriate.
For this I chose to extract the simple X11/Wayland checks into their own
functions to make them reusable in other check functions.
Note that the availability of Window and/or Display capture depends on your Desktop Environment's implementation of these portals."""]
82
100
83
-
return [LEVEL_INFO, "Wayland", ""]
84
-
85
101
86
102
defcheckX11Captures(lines):
87
-
isDistroNix=search('Distribution:', lines)
88
-
isFlatpak=search('Flatpak Runtime:', lines)
89
-
90
-
if (len(isDistroNix) <=0) and (len(isFlatpak) <=0):
91
-
return
92
-
93
-
sessionTypeLine=getSessionTypeLine(lines)
94
-
ifnotsessionTypeLine:
95
-
return
96
-
97
-
if'x11'notinsessionTypeLine:
103
+
ifnotisX11(lines):
98
104
return
99
105
100
106
# obsolete PW sources
@@ -108,8 +114,6 @@ def checkX11Captures(lines):
108
114
"""Most Desktop Environments do not implement the PipeWire capture portals on X11. This can result in being unable to pick a window or display, or the selected source will stay empty.<br><br>
109
115
We generally recommend using \"Window Capture (Xcomposite)\" on X11, as \"Display Capture (XSHM)\" can introduce bottlenecks depending on your setup."""]
return [LEVEL_INFO, "Virtual Camera not available",
168
176
"""Using the Virtual Camera requires the <code>v4l2loopback</code> kernel module to be installed.<br>
169
177
If required, please refer to our <a href="https://github.com/obsproject/obs-studio/wiki/install-instructions#prerequisites-for-all-versions">Install Instructions</a> on how to install this on your distribution."""]
linuxSystemInfoHelp='No distribution detected. This can lead to undefined behaviour. Please consult your distribution\'s support channels on how to fix this.<br>'
191
+
192
+
ifisX11(lines):
193
+
displayServer='X11'
194
+
elifisWayland(lines):
195
+
displayServer='Wayland'
196
+
else:
197
+
# can happen with misconfigured or virtual systems
198
+
displayServer='⚠️ None'
199
+
linuxSystemInfoHelp+='No Display Server detected. This can lead to undefined behaviour. Please consult your Desktop Environment\'s or Window Manager\'s support channels on how to fix this.<br>'
# can happen for some misconfigured tiling window managers
205
+
desktopEnvironment='DE: ⚠️ None'
206
+
linuxSystemInfoHelp+='No Desktop Environment detected. This can lead to undefined behaviour. Please consult your Desktop Environment\'s or Window Manager\'s support channels on how to fix this.'
0 commit comments