从命令行启动Audacious 音频播放器会产生以下错误:
$ audacious
ERROR dbus-server.cc:928 [dbus_server_init]: D-Bus error: Cannot autolaunch D-Bus without X11 $DISPLAY
ERROR pulse_audio.cc:439 [create_context]: pa_context_connect() failed: Connection refused
WARNING plugin-init.cc:110 [start_plugin]: PulseAudio Output failed to start.
ERROR plugin.cc:310 [init]: Cannot autolaunch D-Bus without X11 $DISPLAY
WARNING plugin-init.cc:110 [start_plugin]: MPRIS 2 Server failed to start.
(audacious:42484): Gtk-WARNING **: 21:18:52.181: cannot open display:
WARNING main.cc:328 [main_cleanup]: exit() called unexpectedly; skipping normal cleanup.
从仪表板启动 Audacious 没有任何问题,也可以用它打开文件或从 Nautilus 的上下文菜单中启动它。
Ubuntu 21.04 默认启动 Wayland。所以你没有 X11 $DISPLAY。
在您的登录屏幕右侧是一个小齿轮,
[ ]
将其更改为“Ubuntu”再次登录...