我无法在Rails自动测试通知中使用Engine Yard Vagrant环境。在Mac上,我通常会通过Growl收到通知。但是,在无法运行的虚拟环境(运行Ubuntu)上。
我尝试运行Linux通知设置,例如libnotify + autotest-notification,但是我收到以下错误:
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
另一条路径是让Growl远程接收通知,但我甚至不知道从哪里开始......
有什么建议吗?
答案 0 :(得分:0)
Web服务器无法访问桌面以获取通知。出于安全原因,这通常是件好事。
在Growl安装程序中dmg
是一个程序growlnotify
,可以在大多数Posix-ish系统上进行调整,并可以发送远程通知。您还必须配置Growl以接收远程通知(System Prefeences> Other> Growl> Network)。