Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

desktop: Stop urgent reminder causes segfault & app freeze on Linux. (#9737)

Chloe Olettoa5790de23c73
diff --git a/apps/desktop/src/api/os-integration.ts b/apps/desktop/src/api/os-integration.ts
index 11deee754..fe7960255 100644
--- a/apps/desktop/src/api/os-integration.ts
+++ b/apps/desktop/src/api/os-integration.ts
@@ -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();
}