This commit is contained in:
2026-10-18 00:49:38 +07:00
parent 62d56962e0
commit 7f2a02b69f
8 changed files with 71 additions and 12 deletions
+4 -6
View File
@@ -23,12 +23,10 @@ import { PackageStore } from './package-store.js'
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')
// Electron 42/ANGLE падает при создании EGL-поверхности в XWayland на этом стенде.
if (process.env.XDG_SESSION_TYPE === 'wayland' || process.env.WAYLAND_DISPLAY)
app.commandLine.appendSwitch('disable-gpu-compositing')
// Ozone выбирается до main.js; поздний appendSwitch смешивает Wayland и X11.
if (process.platform === 'linux' && app.commandLine.getSwitchValue('ozone-platform') !== 'x11') {
app.relaunch({ args: [...process.argv.slice(1), '--ozone-platform=x11'] })
app.exit(0)
}
app.commandLine.appendSwitch('autoplay-policy', 'no-user-gesture-required')
protocol.registerSchemesAsPrivileged([