Electron-builder: When use transparent on Linux, it can only start with the parameters of --enable-transparent-visuals --disable-gpu. How can I run it directly ?

Created on 18 Oct 2016  路  1Comment  路  Source: electron-userland/electron-builder

When use transparent on Linux, it can only start with the parameters of --enable-transparent-visuals --disable-gpu. How can I run it directly ?

question

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):

if (process.platform === 'linux') {
    app.commandLine.appendSwitch('enable-transparent-visuals');
    app.commandLine.appendSwitch('disable-gpu');
}

>All comments

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');
}
Was this page helpful?
0 / 5 - 0 ratings