diff --git a/index.js b/index.js index 9af1fd41..dde2fda3 100644 --- a/index.js +++ b/index.js @@ -133,6 +133,7 @@ if (process.platform === "linux") { app.commandLine.appendSwitch('high-dpi-support', "1") app.commandLine.appendSwitch('force-device-scale-factor', "1") app.commandLine.appendSwitch('disable-pinch'); +app.commandLine.appendSwitch('no-sandbox'); // app.commandLine.appendSwitch('js-flags', '--max-old-space-size=1024') /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/src/main/cider-base.js b/src/main/cider-base.js index ae416385..ed176448 100644 --- a/src/main/cider-base.js +++ b/src/main/cider-base.js @@ -71,11 +71,16 @@ const CiderBase = { if (process.platform === "darwin" || process.platform === "linux") { win = new BrowserWindow(options) } else { + // i don't know why but we have to do this for acrylic to work properly if (app.cfg.get("visual.window_transparency") !== "disabled") { const { BrowserWindow } = require("electron-acrylic-window"); + win = new BrowserWindow(options) + win.setVibrancy("dark") + } else { + win = new BrowserWindow(options) + win.setVibrancy("dark") } - win = new BrowserWindow(options) - win.setVibrancy("dark") + } // intercept "https://js-cdn.music.apple.com/hls.js/2.141.0/hls.js/hls.js" and redirect to local file "./apple-hls.js" instead