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