File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff 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.
5455if ( process . platform === "linux" ) app . commandLine . appendSwitch ( "no-sandbox" ) ;
5556app . commandLine . appendSwitch ( "ppapi-flash-path" , flashpath ) ;
5657app . 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 ) ;
You can’t perform that action at this time.
0 commit comments