We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17adbc4 commit 814040aCopy full SHA for 814040a
src/integrations/notifications/index.ts
@@ -60,7 +60,12 @@ async function showLinuxNotification(options: NotificationOptions): Promise<void
60
61
try {
62
await execa("notify-send", [title, fullMessage])
63
- } catch (error) {
+ } catch (error: any) {
64
+ if (error.code === "ENOENT") {
65
+ throw new Error(
66
+ "notify-send is not installed. Please install libnotify-bin (apt install libnotify-bin on Debian/Ubuntu)",
67
+ )
68
+ }
69
throw new Error(`Failed to show Linux notification: ${error}`)
70
}
71
0 commit comments