node-notifier icon indicating copy to clipboard operation
node-notifier copied to clipboard

Does not work on Ubuntu 18.04

Open gitowiec opened this issue 7 years ago • 5 comments

Just passing the same issue here from https://github.com/Turbo87/webpack-notifier/issues/42 Citation:

We have a React project using some additional technologies (eg TS, webpack, redux-saga, and so on). We installed this plugin and the effect on Ubuntu 18.04 was only one timer (notification popped up once). Next webpack runs (TypeScript code recompilations fired on file change) don't trigger further notifications... How to debug this issue on Ubuntu?

marek@marek-Latitude-3470:~$ sudo apt install notify-osd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
notify-osd is already the newest version (0.9.35+16.04.20160415-0ubuntu2).
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

marek@marek-Latitude-3470:~$ sudo apt install libnotify-bin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libnotify-bin is already the newest version (0.7.7-3).
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Additional info: It seems that subsequent notifications with the same message are hidden, if webpack fails to compile and then in next succeeds, the popup shows up correctly.

gitowiec avatar May 22 '18 12:05 gitowiec

Same here ! the click trigger dosen't works on 18.04!

Matew92 avatar Aug 22 '18 11:08 Matew92

Have there been any updates / work arounds for this issue? Thanks!

micronaut avatar Nov 19 '18 20:11 micronaut

It seems like Ubuntu 18.04 notify-send stops working after a while. I found that running "eval dbus-launch --sh-syntax > /dev/null 2>&1" in a terminal will usually make it start working again and the node-notifier messages start showing up.

micronaut avatar Nov 20 '18 12:11 micronaut

Hey! I'm afraid with the current implementation with notify-send, click isn't supported. See docs for supported properties at https://github.com/mikaelbr/node-notifier#usage-notifysend

mikaelbr avatar Jan 24 '19 12:01 mikaelbr

Hi there.

  1. for initial problem as stated by @micronaut, this is due to notify-send command or dbus environment as you are using linux. So not a node-notifier issue. But I don't understand why you are using dbus notifications when there are browser notifications available (you are using a webapp aren't you @gitowiec?)
  2. for subject about click as stated by @mikaelbr, the click event is not taken into account because the wrapped command notify-send cannot handle it. It works only under mac and windows...

albinscode avatar Oct 10 '20 08:10 albinscode