Skip to content
New issue

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

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

Already on GitHub? # to your account

Not work #199

Closed
tanrax opened this issue Feb 16, 2017 · 9 comments
Closed

Not work #199

tanrax opened this issue Feb 16, 2017 · 9 comments

Comments

@tanrax
Copy link

tanrax commented Feb 16, 2017

echo 'Piped Message Data!' | terminal-notifier -sound default
2017-02-16 10:14:02.845 terminal-notifier[76166:184478] NSNotificationCenter connection invalid

@julienXX
Copy link
Owner

Hello @tanrax
Can you give me some more information like:

  • OSX version
  • terminal-notifier version
  • how you installed it (homebrew, gem, other)
  • did it work before?
  • have you tried to re-install it?

@tanrax
Copy link
Author

tanrax commented Feb 16, 2017

of course!

OSX version: 10.12.3
terminal-notifier version> last
how you installed it (homebrew, gem, other): homebrew
did it work before?: yes
have you tried to re-install it?: yes

@julienXX
Copy link
Owner

Thanks, does it fail with other options too or just with | and/or -sound?

@tanrax
Copy link
Author

tanrax commented Feb 16, 2017

echo 'Piped Message Data!' | terminal-notifier
2017-02-16 10:27:10.115 terminal-notifier[83163:200218] NSNotificationCenter connection invalid

@julienXX
Copy link
Owner

Are you using tmux or another kind of sub-shell?

@julienXX
Copy link
Owner

Could you try if osascript -e 'display notification "test" with title "TEST"' has also an invalid connection to NSNotificationCenter?

@tanrax
Copy link
Author

tanrax commented Feb 16, 2017

You are right. It is for the Tmux. I feel the confusion XD

@tanrax tanrax closed this as completed Feb 16, 2017
@julienXX
Copy link
Owner

@tanrax no worries, here are some tips regarding terminal-notifier & tmux #115

@luchofariello
Copy link

@julienXX hi julien,

I run a process from launchctl (LaunchDaemon) and it gives me error:
2017-05-22 15: 16: 48.109 terminal-notifier [35828: 581946] NSNotificationCenter connection invalid
2017-05-22 15: 16: 48.109 terminal-notifier [35828: 581946] Connection to notification center invalid. ServerConnectionFailure: 1 invalidated: 0

I am executing it like this:
/Users/user/terminal-notifier -title "title" -subtitle "subtitle" -message "message" -actions "actions1","actions2" -dropdownLabel "dropdownLabel" -appIcon pathalert.icns -sound "frog" -timeout 120

If I run it directly manual it works correctly.

Thank you very much, I hope to answer.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants