This commit is contained in:
2026-10-17 23:56:33 +07:00
parent beb8ca8f16
commit 62d56962e0
5 changed files with 45 additions and 7 deletions
+6 -1
View File
@@ -24,7 +24,12 @@ import { packageMediaResponse } from './package-media.js'
import type { HostInfo } from '../src/types/screen.js'
// Native Wayland запрещает размещение окна на выбранном дисплее по координатам.
if (process.platform === 'linux') app.commandLine.appendSwitch('ozone-platform', 'x11')
if (process.platform === 'linux') {
app.commandLine.appendSwitch('ozone-platform', 'x11')
// Electron 42/ANGLE падает при создании EGL-поверхности в XWayland на этом стенде.
if (process.env.XDG_SESSION_TYPE === 'wayland' || process.env.WAYLAND_DISPLAY)
app.commandLine.appendSwitch('disable-gpu-compositing')
}
app.commandLine.appendSwitch('autoplay-policy', 'no-user-gesture-required')
protocol.registerSchemesAsPrivileged([
{