mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
App on Linux without cinnamon must be terminated after closing main window
This commit is contained in:
@@ -33,6 +33,10 @@ mainWindow.webContents.sendInputEvent({
|
|||||||
})
|
})
|
||||||
|
|
||||||
mainWindow.on('close', function (e) {
|
mainWindow.on('close', function (e) {
|
||||||
|
if (process.platform === 'linux' && process.env.DESKTOP_SESSION !== 'cinnamon') {
|
||||||
|
app.quit()
|
||||||
|
return true
|
||||||
|
}
|
||||||
mainWindow.hide()
|
mainWindow.hide()
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user