When use transparent on Linux, it can only start with the parameters of --enable-transparent-visuals --disable-gpu. How can I run it directly ?
I can pass these options silently to Electron's renderer proccess on Linux just by putting the following code in main.js (or whatever your main script name is):
if (process.platform === 'linux') {
app.commandLine.appendSwitch('enable-transparent-visuals');
app.commandLine.appendSwitch('disable-gpu');
}
Most helpful comment
I can pass these options silently to Electron's renderer proccess on Linux just by putting the following code in
main.js(or whatever your main script name is):