Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs connects to system bus, but not to the session one

Tags:

emacs

dbus

The system bus works fine

(dbus-init-bus :system)

returns nil, as it should.

However, connection to the session bus

(dbus-init-bus :session)

raises

(dbus-error "No connection to bus" :session)

qdbus in the command line works just fine with both buses. It even works from within eshell, if that is of any concern.

Neither emacs nor emacs --daemon connect.

like image 994
Reactormonk Avatar asked Dec 14 '12 23:12

Reactormonk


1 Answers

Which version of Emacs are you using? One version (before 2012-05-25) only looks for the DBUS_SESSION_BUS_ADDRESS environment variable, while a more recent one uses a library function that also looks in ~/.dbus/session-bus I think.

like image 150
Martin Vidner Avatar answered Nov 06 '22 03:11

Martin Vidner