add electron launch flags option
This commit is contained in:
parent
4d8492cf48
commit
e93b07001a
3 changed files with 4 additions and 2 deletions
|
@ -4,3 +4,5 @@
|
||||||
# all permissions at the defaults (public repos read only, 0 permissions):
|
# all permissions at the defaults (public repos read only, 0 permissions):
|
||||||
# https://github.com/settings/personal-access-tokens/new
|
# https://github.com/settings/personal-access-tokens/new
|
||||||
GITHUB_TOKEN=
|
GITHUB_TOKEN=
|
||||||
|
|
||||||
|
ELECTRON_LAUNCH_FLAGS="--ozone-platform-hint=auto --enable-webrtc-pipewire-capturer --enable-features=WaylandWindowDecorations"
|
|
@ -8,4 +8,4 @@ import "./utils/dotenv";
|
||||||
|
|
||||||
import { spawnNodeModuleBin } from "./utils/spawn.mjs";
|
import { spawnNodeModuleBin } from "./utils/spawn.mjs";
|
||||||
|
|
||||||
spawnNodeModuleBin("electron", ["."]);
|
spawnNodeModuleBin("electron", [".", ...(process.env.ELECTRON_LAUNCH_FLAGS?.split(" ") ?? [])]);
|
||||||
|
|
|
@ -48,7 +48,7 @@ export function registerScreenShareHandler() {
|
||||||
`Vesktop.Components.ScreenShare.openScreenSharePicker(${JSON.stringify([data])}, true)`
|
`Vesktop.Components.ScreenShare.openScreenSharePicker(${JSON.stringify([data])}, true)`
|
||||||
);
|
);
|
||||||
|
|
||||||
callback(video ? { video } : {});
|
callback(video ? { video: sources[0] } : {});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue