Giter Club home page Giter Club logo

Comments (20)

fgrehm avatar fgrehm commented on July 30, 2024

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.

stuffaboutpete avatar stuffaboutpete commented on July 30, 2024

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.

osrochabr avatar osrochabr commented on July 30, 2024

+1

from vagrant-notify.

fgrehm avatar fgrehm commented on July 30, 2024

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.

osrochabr avatar osrochabr commented on July 30, 2024

@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.

stuffaboutpete avatar stuffaboutpete commented on July 30, 2024

Yeah same for me, it doesn't make a difference. I've set Growl up now which was very simple 👍

from vagrant-notify.

fgrehm avatar fgrehm commented on July 30, 2024

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.

stuffaboutpete avatar stuffaboutpete commented on July 30, 2024

Ok cool, I'll watch this space.

Cheers for the work, very useful.

from vagrant-notify.

maikelvl avatar maikelvl commented on July 30, 2024

Any updates on this? Also ran into this. Please share.

from vagrant-notify.

stuffaboutpete avatar stuffaboutpete commented on July 30, 2024

I've just been using Growl. I'd recommend that route unless you have any specific reason not to...

from vagrant-notify.

maikelvl avatar maikelvl commented on July 30, 2024

I like native, but for now I use Growl as well. tnx

from vagrant-notify.

fgrehm avatar fgrehm commented on July 30, 2024

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.

stuffaboutpete avatar stuffaboutpete commented on July 30, 2024

Sounds interesting. Happy to help, let me know what you need.

from vagrant-notify.

c960657 avatar c960657 commented on July 30, 2024

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.

stuffaboutpete avatar stuffaboutpete commented on July 30, 2024

Makes no difference for me unfortunately.

from vagrant-notify.

c960657 avatar c960657 commented on July 30, 2024

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.

stuffaboutpete avatar stuffaboutpete commented on July 30, 2024

Excellent, it's now working for me. I had to unset GEM_PATH RUBYOPT and BUNDLE_GEMFILE.

Thank you!

from vagrant-notify.

fgrehm avatar fgrehm commented on July 30, 2024

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.

richardriman avatar richardriman commented on July 30, 2024

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.

alpha01 avatar alpha01 commented on July 30, 2024

Closing. Use https://github.com/fgrehm/vagrant-notify/blob/master/examples/osx/notify-send_terminal-notifier

from vagrant-notify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.