You are not logged in.

#1 2012-12-19 17:59:13

jleechpe
Member
Registered: 2012-12-19
Posts: 1

Emacs - dbus-error "No connection to bus" :session

Hello,

When trying to use notifications in Emacs (GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.2) of 2012-11-18 on eric) with AwesomeWM I get the following error:

(notifications-notify :title "Test" :body "testing")
Debugger entered--Lisp error: (dbus-error "No connection to bus" :session)
  dbus-call-method(:session "org.freedesktop.Notifications" "/org/freedesktop/Notifications" "org.freedesktop.Notifications" "Notify" :string "Emacs" :uint32 0 :string "/usr/share/emacs/24.2/etc/images/icons/hicolor/scalable/apps/emacs.svg" :string "Test" :string "testing" (:array) (:array :signature "{sv}") :int32 -1)
  notifications-notify(:title "Test" :body "testing")
  eval((notifications-notify :title "Test" :body "testing") nil)
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
  call-interactively(eval-last-sexp nil nil)

The dbus-daemon is running:

~ $ ps -aux | grep "dbus.*sessio[n]"
zinsho     475  0.0  0.0  17536  1316 ?        Ss   12:23   0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session

and I can successfully send notifications using notify send and dbus-send

$ notify-send "Test" "testing"
$ dbus-send --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.Notify string:"Emacs" uint32:0 string:"/usr/share/emacs/24.2/etc/images/icons/hicolor/scalable/apps/emacs.svg" string:"Title" string:"Test" array:string:"" array:string:"" int32:-1

I've looked through Google and the wiki to try and find an answer and nothing has worked.  I tested with Xfce4 and got the same error so I don't know where the issue is.  Might it be related to using systemd to start dbus?

Offline

#2 2014-04-25 11:57:42

tohojo
Member
From: Sweden
Registered: 2010-10-06
Posts: 4

Re: Emacs - dbus-error "No connection to bus" :session

I'm having the same issue; did you find a solution? smile

Offline

#3 2014-04-25 18:57:06

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Emacs - dbus-error "No connection to bus" :session

I'm sorry tohojo, this is an old thread and OP has not posted in over a year. You should open a new thread. Forum Etquette: Old Threads / Necro-Bumping, Closing.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB