mikaelbr / node-notifier

A Node.js module for sending notifications on native Mac, Windows and Linux (or Growl as fallback)
MIT License
5.73k stars 322 forks source link

suddenly not working on linux (with awesome wm) #345

Open beenotung opened 3 years ago

beenotung commented 3 years ago

node-notifier used to work on my environment, having awesome window manager run from startx directly, without using any desktop environment.

But recently (since 15 Oct 2020?) it doesn't display notice on the system, without any error message nor thrown error.

Probably due to recent system update.

Sample code

Javascript:

let notifier = require("node-notifier");

notifier.notify({
    title: "Hi",
    message: "Ready"
});

Typescript:

import { notify } from 'node-notifier'

notify({
    title: 'Hi',
    message: 'Ready',
    icon: path.resolve('res/icon.jpg'),
})

node-notifier version

Tried 5.2.1 and 8.0.0, both of them have this issue

System Information

Software version
OS Archlinux (5.8.14-arch1-1 x86_64 GNU/Linux)
Window Manager Awesome v4.3
notify-osd 0.9.35+16.04.20160415-3
libnotify 0.7.9-1
> awesome --version
awesome v4.3 (Too long)
 • Compiled against Lua 5.3.5 (running with Lua 5.3)
 • D-Bus support: ✔
 • execinfo support: ✔
 • xcb-randr version: 1.6
 • LGI version: 0.9.2
beenotung commented 3 years ago

The workaround is to explicitly install growl, maybe it's an implicit/missing dependency?

beenotung commented 3 years ago

It seems to be issue in my system.

When I used above workaround, the notice toast box appear differently (more like the gnome style).

But that workaround doesn't work when I retry after a while.

Then I restart my OS, the notice toast appear as usually again, and I can remove growl from the dependency and it still works.