Comments (8)
Unless the plugin is disabled, each time the guest VM starts/stops; a Ruby script get's copied over to /usr/bin/notify-send
onto the guest VM. Is this not happening?
from vagrant-notify.
It seams that happens. Also there is /usr/bin/notify-send.bkp
file. And I think it should work but for unknown reason I'm getting such error. Like I said. same vagrant file doesn't have problem when I'm running on windows.
from vagrant-notify.
It sounds like the guest's notify-send is not able to find the notify-send
on your host MacOS system. Have you created a script called notify-send
and have it saved anywhere on your PATH? I provide some examples here https://github.com/fgrehm/vagrant-notify/tree/master/examples
It is important that the script on your MacOS system is named notify-send and the execute permission is set to it. Because that's what the notification server runs when it receives messages from the guest VM https://github.com/fgrehm/vagrant-notify/blob/master/lib/vagrant-notify/server.rb#L48
from vagrant-notify.
Good point! Tomorow at work I'll try this. Still such message is not very informative.
from vagrant-notify.
It seems that was issue. Somehow I have forgot to add a script. I also modified one of MacOS X examples to be able to run without any external apps with build-in AppleScript support.
Still, I would like to make somehow this error message more informative but i'm unsure how to do.
from vagrant-notify.
Thanks for the AppleScript support!
To get a more relevant error message, might need to modify either guest's notify-send or the actual notification server.
I think the easiest and best approach is to have the plugin display a warning if it doesn't detect a notify-send
anywhere on the host's PATH prior to starting the notification-server.
from vagrant-notify.
I think if we could change
system("notify-send #{args}")
line (in https://github.com/fgrehm/vagrant-notify/blob/master/lib/vagrant-notify/server.rb
) into
puts "Warning! notify-send on host os not found!" if system("notify-send #{args}").nil?
at least partially would solve the issue. If command is not found system
always returns nil.
from vagrant-notify.
closing
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
- 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.