Comments (20)
Weird.... I'm not a Mac user, so I can't help you much here =/
Why didn't you use grownotify
as shown on the readme?
from vagrant-notify.
Ok, no worries. I only used notification center because it's native and thought it would be simple; it is also mentioned in the readme.
I'll let you know if I get anywhere.
from vagrant-notify.
+1
from vagrant-notify.
Something just crossed my mind. Have you tried specifying the full path to the terminal-notifier
executable on the /usr/local/bin/notify-send
script? Maybe there's some Ruby / Bundler PATH
black magic happening and it gets confused about which terminal-notifier
it has to run.
from vagrant-notify.
@fgrehm Actually, i did it, and the error message remain the same. There's some black magic here. When i run /usr/local/bin/notify-send script directly on the host (OS X), this work fine.
from vagrant-notify.
Yeah same for me, it doesn't make a difference. I've set Growl up now which was very simple 👍
from vagrant-notify.
Awesome! I'm working on extracting the notification server out to a separate project and it is likely that it will fix those issues and might make the Mac / Windows integration a bit simpler
from vagrant-notify.
Ok cool, I'll watch this space.
Cheers for the work, very useful.
from vagrant-notify.
Any updates on this? Also ran into this. Please share.
from vagrant-notify.
I've just been using Growl. I'd recommend that route unless you have any specific reason not to...
from vagrant-notify.
I like native, but for now I use Growl as well. tnx
from vagrant-notify.
This is what is likely to become the foundation of vagrant-notify 1.0: https://github.com/fgrehm/notify-send-http
I don't own a mac so I'll need some help to try things out over there once I'm able to get a Mac version of the server in place.
from vagrant-notify.
Sounds interesting. Happy to help, let me know what you need.
from vagrant-notify.
Adding unset GEM_PATH RUBYOPT
to your wrapper script in /usr/local/bin/notify-send fixes the issue. I don't know enough about Ruby to tell whether this is a fix or a workaround.
from vagrant-notify.
Makes no difference for me unfortunately.
from vagrant-notify.
There are a number of other Ruby-specific environment variables that leak into the script (BUNDLE_BIN_PATH, BUNDLE_APP_CONFIG, BUNDLE_CONFIG, RUBYLIB, BUNDLE_GEMFILE, GEMRC - and possibly others) that may also need to be unset.
from vagrant-notify.
Excellent, it's now working for me. I had to unset GEM_PATH RUBYOPT
and BUNDLE_GEMFILE
.
Thank you!
from vagrant-notify.
Support for Mac OS has just landed into notify-send-http. This will be fixed when this plugin gets updated to use that.
from vagrant-notify.
I have solution for terminal-notifier. I solved it this way:
#!/bin/bash
shift
/usr/local/bin/terminal-notifier -title "Vagrant Machine" -message "$*"
It's because notify-send sends '--' as a first argument and terminal-notifier not understand this syntax.
from vagrant-notify.
Closing. Use https://github.com/fgrehm/vagrant-notify/blob/master/examples/osx/notify-send_terminal-notifier
from vagrant-notify.
Related Issues (20)
- Error File Not Found HOT 2
- add more details to the built-in notifications HOT 6
- Notification when provisioning fails HOT 2
- Call for Maintainers HOT 2
- Does not work with hashcorp/precise64 HOT 2
- vagrant notify stops homestead from working HOT 3
- notify-send cannot use custom notifier HOT 1
- Doesn't listen on all addresses? HOT 4
- Port Collision HOT 1
- Add support for VMWare Workstation provider HOT 1
- Add support for Hyper-V HOT 1
- 0.5.4
- Doesn't work when guest missing ruby HOT 2
- "sh: notify-send: command not found" in homestead on MacOS X HOT 8
- Unable to start notification server using HOT 1
- vagrant-notify-0.5.6/lib/vagrant-notify/config.rb:31: warning: constant ::Fixnum is deprecated HOT 3
- Some *nix like boxes has restrictions for modifying system files and vagrant-notify fails in such scenarios HOT 3
- Wrong icon url
- Add support for libvirt provider HOT 2
- Project status? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vagrant-notify.