【问题标题】:Autotest notifications on Ubuntu virtual environmentUbuntu 虚拟环境中的自动测试通知
【发布时间】:2011-07-14 06:07:00
【问题描述】:

我无法让 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 远程接收通知,但我什至不知道从哪里开始......

有什么建议吗?

【问题讨论】:

    标签: ruby-on-rails notifications autotest engineyard vagrant


    【解决方案1】:

    网络服务器将无法访问桌面以获取通知。出于安全原因,这通常是一件好事。

    在 Growl 安装程序中,dmg 是一个程序 growlnotify,可以调整为在大多数 Posix-ish 系统上构建并可以发送远程通知。您还必须配置 Growl 以接收远程通知(系统偏好设置 > 其他 > Growl > 网络)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-09-24
      • 1970-01-01
      • 2013-10-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多