mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-05-18 13:16:11 +02:00
desktop: Stop urgent reminder causes segfault & app freeze on Linux. (#9737)
* desktop: Stop urgent reminder causes segfault & app freeze on Linux. Signed-off by: Chloe Oletto <NeedsChloesure@riseup.net> * desktop: Linux segfault Signed-off-by: Chloe Oletto <NeedsChloesure@riseup.net> * Apply suggestion from @thecodrr Signed-off-by: Abdullah Atta <thecodrr@protonmail.com> --------- Signed-off-by: Abdullah Atta <thecodrr@protonmail.com> Co-authored-by: Abdullah Atta <thecodrr@protonmail.com>
This commit is contained in:
@@ -178,7 +178,9 @@ export const osIntegrationRouter = t.router({
|
||||
})
|
||||
});
|
||||
notification.show();
|
||||
if (input.urgency === "critical") {
|
||||
if (input.urgency === "critical" && process.platform !== "linux") {
|
||||
// due to an Electron bug in versions below 40.x, shell.beep() causes a segfault on Linux.
|
||||
// TODO: Remove when migrating to Electron 40.x or newer.
|
||||
shell.beep();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user