Wayland: Skip our screenshare screen picker
This commit is contained in:
parent
3108de7c79
commit
b87bcaefe9
1 changed files with 10 additions and 0 deletions
|
@ -29,6 +29,16 @@ export function registerScreenShareHandler() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const isWayland =
|
||||||
|
process.platform === "linux" &&
|
||||||
|
(process.env.XDG_SESSION_TYPE === "wayland" || !!process.env.WAYLAND_DISPLAY);
|
||||||
|
|
||||||
|
if (isWayland) {
|
||||||
|
const video = sources[0];
|
||||||
|
callback(video ? { video } : {});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const data = sources.map(({ id, name, thumbnail }) => ({
|
const data = sources.map(({ id, name, thumbnail }) => ({
|
||||||
id,
|
id,
|
||||||
name,
|
name,
|
||||||
|
|
Loading…
Reference in a new issue