Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 #2

Closed
djbouzz opened this issue Dec 20, 2019 · 1 comment
Closed

Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 #2

djbouzz opened this issue Dec 20, 2019 · 1 comment

Comments

@djbouzz
Copy link

djbouzz commented Dec 20, 2019

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)

@miraclx
Copy link
Owner

miraclx commented Jan 1, 2020

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

@miraclx miraclx closed this as completed Jan 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants