diff --git a/README.md b/README.md index 770cfae9..13214b6b 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,8 @@ const {getPluginEntry} = require("mpv.js"); const pluginDir = path.join(path.dirname(require.resolve("mpv.js")), "build", "Release"); // See pitfalls section for details. if (process.platform !== "linux") {process.chdir(pluginDir);} +// Fix for latest Electron. +app.commandLine.appendSwitch("no-sandbox"); // To support a broader number of systems. app.commandLine.appendSwitch("ignore-gpu-blacklist"); app.commandLine.appendSwitch("register-pepper-plugins", getPluginEntry(pluginDir)); diff --git a/example/index.js b/example/index.js index 14a10adc..6cc8a820 100644 --- a/example/index.js +++ b/example/index.js @@ -7,6 +7,7 @@ require("electron-debug")({showDevTools: false}); const pdir = path.join(__dirname, "..", "build", "Release"); if (process.platform !== "linux") {process.chdir(pdir);} +app.commandLine.appendSwitch("no-sandbox"); app.commandLine.appendSwitch("ignore-gpu-blacklist"); app.commandLine.appendSwitch("register-pepper-plugins", getPluginEntry(pdir));