mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
fix portable app restart
This commit is contained in:
@ -14,6 +14,7 @@ module.exports.setupAppControls = () => {
|
||||
}
|
||||
|
||||
function restart() {
|
||||
app.relaunch();
|
||||
app.exit();
|
||||
app.relaunch({ execPath: process.env.PORTABLE_EXECUTABLE_FILE });
|
||||
// execPath will be undefined if not running portable app, resulting in default behavior
|
||||
app.quit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user