Skip to content

Commit

Permalink
Mention no-sandbox
Browse files Browse the repository at this point in the history
Fixes #64
  • Loading branch information
Kagami committed Apr 27, 2020
1 parent 0f7884d commit cd91bb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
1 change: 1 addition & 0 deletions example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit cd91bb1

Please sign in to comment.