fix: add support for Wayland

fix #1864
This commit is contained in:
JellyBrick
2024-03-19 21:11:10 +09:00
parent 5a6d681bf4
commit 679938ccf7

View File

@ -82,11 +82,15 @@ if (!gotTheLock) {
app.exit();
}
// Ozone platform hint: Required for Wayland support
app.commandLine.appendSwitch('ozone-platform-hint', 'auto');
// SharedArrayBuffer: Required for downloader (@ffmpeg/core-mt)
// OverlayScrollbar: Required for overlay scrollbars
// UseOzonePlatform: Required for Wayland support
// WaylandWindowDecorations: Required for Wayland decorations
app.commandLine.appendSwitch(
'enable-features',
'OverlayScrollbar,SharedArrayBuffer',
'OverlayScrollbar,SharedArrayBuffer,UseOzonePlatform,WaylandWindowDecorations',
);
if (config.get('options.disableHardwareAcceleration')) {
if (is.dev()) {