julienXX / terminal-notifier

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

-remove flag is not always removing when -group is used #238

Open luckman212 opened 6 years ago

luckman212 commented 6 years ago

macOS 10.13.1 terminal-notifier 2.0.0 (via Homebrew) Xcode 9.1 (9B55)

repro:

  1. make a notification with a group specified e.g. $ terminal-notifier -group Foo -title Bar -message Baz

  2. remove that notification: $ terminal-notifier -remove Foo * Removing previously sent notification, which was sent on: 2017-11-11 15:16:31 +0000

  3. list all $ terminal-notifier -list ALL GroupID Title Subtitle Message Delivered At Foo Bar (null) Baz 2017-11-11 15:16:31 +0000

it's still there!

Now, repeat step 2 (multiple times...sometimes takes 10 or more in my tests) After many attempts, the notification is eventually cleared...

?

julienXX commented 6 years ago

Hi @luckman212 could you try the solution described here https://github.com/julienXX/terminal-notifier/issues/222#issuecomment-320980802 I had the same issue as many terminal-notifier where registered on my system. Deleting all terminal-notifier instances in the DB except fr.julienxx.oss.terminal-notifier could resolve the issue. At least it fixed my local dev machine.

luckman212 commented 6 years ago

Will give that a try, thanks.

luckman212 commented 6 years ago

https://github.com/julienXX/terminal-notifier/issues/222#issuecomment-320980802 was an interesting read, but did not fix this issue for me. Even after "cleaning" the sqlite3 db and killing usernoted and NotificationCenter the entries still lingered even after issuing the -remove command. Took 4 attempts when I tested just now.