fixed ubuntu (Wayland) recording workflow

This commit is contained in:
2026-06-26 15:48:09 -05:00
parent 412a4f4820
commit 32788fafdc
2 changed files with 34 additions and 4 deletions
+7 -1
View File
@@ -14,7 +14,13 @@ try {
}
const env = sanitizeElectronEnv();
const child = spawn(electronPath, ['.'], {
// On Linux/Wayland, enable PipeWire-based screen capture so desktopCapturer
// can go through the XDG Desktop Portal when XWayland isn't the only option.
const extraArgs = process.platform === 'linux'
? ['--enable-features=WebRTCPipeWireCapturer']
: [];
const child = spawn(electronPath, [...extraArgs, '.'], {
stdio: 'inherit',
env,
windowsHide: false,