Ubuntu 虚拟环境上的自动测试通知

发布于 2024-10-21 19:13:20 字数 733 浏览 2 评论 0原文

我在获取 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

岁月蹉跎了容颜 2024-10-28 19:13:20

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 program growlnotify, 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文