- redis-ui.git
- src
- lib
- relaunch.js
This file ( 529B ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
module.exports = () => {
let { args, app } = require('electron')
//console.log('args', args, 'process.env.APPIMAGE', process.env.APPIMAGE)
//console.trace()
if (process.env.APPIMAGE) {
if (args === undefined) {
args = []
}
const options = {args};
options.execPath = process.env.APPIMAGE;
options.args.unshift('--appimage-extract-and-run');
app.relaunch(options);
app.exit(0);
} else {
app.relaunch();
app.exit(0);
}
}