Ubuntu 虚拟环境上的自动测试通知
我在获取 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 远程接收通知,但我什至不知道从哪里开始...
任何建议?
I am having trouble getting Rails autotest notifications to work on the Engine Yard Vagrant environment. On the Mac, I normally get the notifications via Growl. However, on the virtual environment (which runs Ubuntu) that doesn't work.
I tried running Linux notification setups 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 path would be to have Growl receive the notifications remotely, but I don't even know where to begin with that...
Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Web 服务器无法访问桌面以获取通知。出于安全原因,这通常是一件好事。
在 Growl 安装程序
dmg
中是一个程序growlnotify
,它可以调整为在大多数 Posix-ish 系统上构建,并且可以发送远程通知。您还必须配置 Growl 以接收远程通知(系统首选项 > 其他 > Growl > 网络)。The web server won't have access to the desktop for notifications. This is generally a good thing, for security reasons.
In the Growl installer
dmg
is a programgrowlnotify
, which can be tweaked into building on most Posix-ish systems and can send remote notifications. You will also have to configure Growl to receive remote notifications (System Prefeences > Other > Growl > Network).