julienXX / terminal-notifier

Send User Notifications on macOS from the command-line.
Other
6.38k stars 330 forks source link

-remove option unreliable/doesn't work #118

Closed petere closed 7 years ago

petere commented 10 years ago

Somehow, the -remove option doesn't seem to work anymore. I'm pretty sure it did at some point.

$ terminal-notifier -list ALL
$ terminal-notifier -group foo -message test
# (notification pops up)
$ terminal-notifier -list ALL
GroupID Title   Subtitle    Message Delivered At
foo Terminal    (null)  test    2014-11-08 02:40:18 +0000

So far so good.

$ terminal-notifier -remove foo
* Removing previously sent notification, which was sent on: 2014-11-08 02:40:18 +0000
$ terminal-notifier -list ALL
GroupID Title   Subtitle    Message Delivered At
foo Terminal    (null)  test    2014-11-08 02:40:18 +0000

I can repeat that indefinitely. It's not a timing issue.

When I close the notification manually in the notification center, then it disappears from the list:

$ terminal-notifier -list ALL
$

I'm on Yosemite.

Any ideas?

alex030 commented 10 years ago

+1: I can see the same

julienXX commented 9 years ago

I can't see this behaviour. Are you using 1.6.2?

petere commented 9 years ago

It happens only with 1.6.2, not with 1.6.1.

Martin-Pitt commented 9 years ago

Can also repro this issue by running the same commands. Just installed 1.6.2 terminal-notifier as a brand new user.

applebit924 commented 9 years ago

I too have not been able to get this to work when I execute this from a script. It will work via the command line in the Terminal.

petere commented 8 years ago

I could swear that after I upgraded to El Capitan, this worked as intended for about two days, and then it reverted back to the broken behavior described here. So apparently something gets jammed in the system state after a couple of uses.

julienXX commented 7 years ago

Closing for now, feel free to re-open if you still have issues.