terminal-notifier
terminal-notifier copied to clipboard
-open: Click terminal-notification then brings another notification
Please check everything that applies to your issue:
- [x] I looked in closed issues and it has not already been answered
- [ ] My issue appeared with a terminal-notifier update
- [ ] I'm using a tool that uses terminal-notifier (guard-notifier, node-notifier...)
To help us debug your issue please include:
- the macOS version you use macOS big Sur
- terminal-notifier version 2.0.0
- how did you install terminal-notifier (binary download, homebrew, ruby gem...)? homebrew
- step-by-step reproduction instructions
- open 'terminal' in macos
- enter "terminal-notifier -message 'hello'"
- It will show:
- If you click the notification box, it will bring another same notification box again!
- If you click any of the box, you will get more boxes. This will result in that '-open' can't be used, because when you click the box, it will bring the box, not open url in browser.
Hope someone help me with this issue...
Common issues and solution:
- I'm using tmux -> see #115
- I'm using iterm2 -> see #147
- I want to change the icon -> see https://github.com/julienXX/terminal-notifier/issues/197#issuecomment-301305576
- I want sticky notifications or action buttons -> please use alerter
Thanks!
I'm seeing this too, and it appears to have started after the Big Sur 11.6 update. I know it was working correctly before that.
I am seeing it too, and like charlottehu111, it only started with Big Sur 11.6.
I'm having the same issue too, and it was right after I installed Big Sur 11.6.
I am also having the same issue and I am on Big Sur 11.6. Please fix this soon!
I'd like to note that in addition to -open
no longer working, -execute
is also broken now. So you can't replace -open https://google.com'
with -execute '/usr/bin/open https://google.com'
, for example.
I haven't tried the fix linked above since it's not merged yet, but for anyone hitting this you might want to try replacing terminal-notifier
with alerter
, linked in the first post on this page (direct GitHub link). That's what I did in my scripts and I have restored the features that were broken by this bug.
alerter
works slightly differently, but can be used to do the same thing. For example if you had:
terminal-notifier -title 'my title' -message 'my message' -open 'https://google.com'
Then you can replace it with:
outcome=$(alerter -title 'my title' -message 'my message')
if [[ $outcome == '@CONTENTCLICKED' ]]; then
open 'https://google.com'
fi
Hi, is there a posibility/plan to fix this issue?
Maybe this project should be forked? If I depended on it more, I'd consider doing so myself. But I switched to Alerter when this problem started.
Sorry I don't own a Mac at the moment (mine died and not sure I'll have the funds for a new one soon). I guess Apple changed their APIs I'll need to look into this but time is an issue for me these days.
johnlee999's pull request above fixed the issue for me.
https://github.com/julienXX/terminal-notifier/pull/289
Thx for your replys! Didn´t know how to use such a pull request
Clicking the notification works again for me after upgrading to macOS Monterey.
It also works correctly again with Big Sur 11.6.1.