Skip to content

Commit c6e5c95

Browse files
Enable sandbox for Windows and macOS
1 parent b029cfa commit c6e5c95

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ if(isDev){
5151
} else {
5252
flashpath = path.join(path.dirname(app.getAppPath()), 'plugins', pluginName);
5353
}
54+
// This is necessary because there is something wrong with Linux that prevents flash from running when a sandbox is present.
5455
if (process.platform === "linux") app.commandLine.appendSwitch("no-sandbox");
5556
app.commandLine.appendSwitch("ppapi-flash-path", flashpath);
5657
app.commandLine.appendSwitch("ppapi-flash-version", "32.0.0.371");
@@ -73,8 +74,6 @@ function createWindow() {
7374
devTools: isDev,
7475
// Must be enabled to allow flash to run.
7576
plugins: true,
76-
// Security settings
77-
sandbox: false // Disable sandbox to ensure preload script runs
7877
},
7978

8079
}
@@ -184,7 +183,6 @@ function createWindow() {
184183
contextIsolation: true,
185184
preload: preloadPath, // Use the verified absolute path
186185
plugins: true,
187-
sandbox: false // Disable sandbox to ensure preload script runs
188186
},
189187
});
190188
win.newwin.setMenu(null);

0 commit comments

Comments
 (0)