Workaround Linux Wayland screenshare bug
This commit is contained in:
parent
944a70abe7
commit
d7da7fdca0
3 changed files with 29 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue