let { args, dialog} = require('electron')
//console.log('args', args, 'process.env.APPIMAGE', process.env.APPIMAGE)
if (process.env.APPIMAGE) {
if (args === undefined) {
args = []
}
const options = {args};
if (process.env.APPIMAGE) {
options.execPath = process.env.APPIMAGE;
options.args.unshift('--appimage-extract-and-run');
}
app.relaunch(options);
app.exit(0);
} else {
app.relaunch();
app.exit(0);
}