Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Closed this issue · 1 comments
Hi
After installing on ubuntu server 18.04 and calling cmusd I get this errror :
/usr/local/lib/node_modules/cmusd/node_modules/dbus/lib/bus.js:24
self.connection = _dbus.getBus(1);
^
Error: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
at new module.exports (/usr/local/lib/node_modules/cmusd/node_modules/dbus/lib/bus.js:24:27)
at Function.DBus.getBus (/usr/local/lib/node_modules/cmusd/node_modules/dbus/lib/dbus.js:39:9)
at Function.DBus.registerService (/usr/local/lib/node_modules/cmusd/node_modules/dbus/lib/dbus.js:78:17)
at Player.init (/usr/local/lib/node_modules/cmusd/node_modules/mpris-service/index.js:35:22)
at new Player (/usr/local/lib/node_modules/cmusd/node_modules/mpris-service/index.js:28:7)
at Player (/usr/local/lib/node_modules/cmusd/node_modules/mpris-service/index.js:13:40)
at Object. (/usr/local/lib/node_modules/cmusd/bin/index.js:88:43)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
Hi @djbouzz
This is not a cmusd
error
Rather, you don't have an X11 Session running for dbus to be auto-launched on
If you want to use this without the X11 session, you have to configure dbus to launch on startup
For more info, look here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690530
If you intend to connect to a remote X11 session, please ensure your SSH X11 Forwarding configuration isn't misconfigured. See: https://unix.stackexchange.com/questions/12755/how-to-forward-x-over-ssh-to-run-graphics-applications-remotely
Or, just ensure that the $DISPLAY variable points to the proper display. :1, or something