up
This commit is contained in:
+6
-1
@@ -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([
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user