Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-open: Click terminal-notification then brings another notification #288

Open
1 of 3 tasks
charlottehu111 opened this issue Sep 20, 2021 · 12 comments
Open
1 of 3 tasks

Comments

@charlottehu111
Copy link

charlottehu111 commented Sep 20, 2021

Please check everything that applies to your issue:

  • 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
  1. open 'terminal' in macos
  2. enter "terminal-notifier -message 'hello'"
  3. It will show:
    14B303D3-A3AC-42F2-8CF3-E050D13079D8
  4. If you click the notification box, it will bring another same notification box again!
    F6BC5C8E-7604-4CA5-A6B7-4628C347F67F
  5. 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:

Thanks!

@charlottehu111 charlottehu111 changed the title Click terminal-notification then brings another notification -open Click terminal-notification then brings another notification Sep 21, 2021
@charlottehu111 charlottehu111 changed the title -open Click terminal-notification then brings another notification -open: Click terminal-notification then brings another notification Sep 21, 2021
@nano9g
Copy link

nano9g commented Sep 23, 2021

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.

@garyrob
Copy link

garyrob commented Sep 24, 2021

I am seeing it too, and like charlottehu111, it only started with Big Sur 11.6.

@johnlee999
Copy link

I'm having the same issue too, and it was right after I installed Big Sur 11.6.

@synconclick
Copy link

I am also having the same issue and I am on Big Sur 11.6. Please fix this soon!

@nicolasff
Copy link

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

@warmup72
Copy link

warmup72 commented Nov 2, 2021

Hi, is there a posibility/plan to fix this issue?

@garyrob
Copy link

garyrob commented Nov 2, 2021

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.

@julienXX
Copy link
Owner

julienXX commented Nov 2, 2021

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.

@dejuknow
Copy link

dejuknow commented Nov 2, 2021

johnlee999's pull request above fixed the issue for me.

#289

@warmup72
Copy link

warmup72 commented Nov 2, 2021

Thx for your replys!
Didn´t know how to use such a pull request

@mpolden
Copy link

mpolden commented Nov 24, 2021

Clicking the notification works again for me after upgrading to macOS Monterey.

@vszakats
Copy link

vszakats commented Nov 24, 2021

It also works correctly again with Big Sur 11.6.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests