Autotest notifications in Ubuntu virtual environment

I'm having trouble getting Rails autotest notifications to work with the Engine Yard Vagrant environment. On a Mac, I usually get notifications through Growl. However, in a virtual environment (which runs Ubuntu) this does not work.

I tried to run Linux notification installations, such as libnotify + autotest-notification, but I get the following error:

libnotify-Message: Unable to get session bus: /bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed. ** (notify-send:1004): CRITICAL **: dbus_g_proxy_connect_signal: assertion `DBUS_IS_G_PROXY (proxy)' failed ** (notify-send:1004): CRITICAL **: dbus_g_proxy_connect_signal: assertion `DBUS_IS_G_PROXY (proxy)' failed ** (notify-send:1004): CRITICAL **: dbus_g_proxy_call: assertion `DBUS_IS_G_PROXY (proxy)' failed 

Another way would be for Growl to receive notifications remotely, but I don’t even know where to start ...

Any suggestions?

0
source share
1 answer

The web server will not have access to the desktop for notifications. This is generally good for security reasons.

The Growl dmg installer has a growlnotify program that you can configure on most Posix-ish systems and send remote notifications. You also need to configure Growl to receive remote notifications (System Prefeences> Other> Growl> Network).

0
source

Source: https://habr.com/ru/post/1438464/


All Articles