Workaround Linux Wayland screenshare bug

This commit is contained in:
ayumi-signal
2023-09-12 19:14:07 -07:00
committed by GitHub
parent 944a70abe7
commit d7da7fdca0
3 changed files with 29 additions and 8 deletions

View File

@@ -19,9 +19,14 @@ function getLinuxName(): string | undefined {
return match[1];
}
function isWaylandEnabled(): boolean {
return Boolean(process.env.WAYLAND_DISPLAY);
}
const OS = {
...getOSFunctions(os.release()),
getLinuxName,
isWaylandEnabled,
};
export default OS;