mikaelbr / node-notifier

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

Timeout not working on linux #207

Open amiut opened 7 years ago

amiut commented 7 years ago

Hi, thanks for the great module, The timeout flag doesn't work on arch linux

selfrefactor commented 6 years ago

It didn't work for me either(at Ubuntu).

JoshuaDoshua commented 5 years ago

Issue still occurring for me, via webpack-build-notifier

Related #215

mikaelbr commented 5 years ago

Hi. Is it working when using time as specified here https://github.com/mikaelbr/node-notifier#usage-notifysend ? I saw there was missing a mapping from timeout to expire-time, I've added that in master now, but if using the time or testing master isn't working out for you now, we have some other issue I think

ildella commented 3 years ago

It can't work as notify-send has a bug (or a feature...) to ignore --expire-time parameter See here: https://bugs.launchpad.net/ubuntu/+source/notify-osd/+bug/390508 In fact, man notify-send reports that:

       -t, --expire-time=TIME
           The duration, in milliseconds, for the notification to appear on screen.

           (Ubuntu's Notify OSD and GNOME Shell both ignore this parameter.)

Another annoying issue with notify-send is that it floods the notification area. I am thinking that maybe using yad as backend for Linux should probably work better for practical use case.