all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* notifications.el: D-Bus error: "No connection to bus", :session
@ 2011-10-23 15:32 Peter Münster
  2011-10-23 16:25 ` Michael Albinus
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Münster @ 2011-10-23 15:32 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I wanted to try notifications.el, but I get this error:

    D-Bus error: "No connection to bus", :session

when loading it with "(require 'notifications)".

I use emacs-trunk from bzr. Bug or wrong system setup?

TIA for any hint!
-- 
           Peter




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: notifications.el: D-Bus error: "No connection to bus", :session
  2011-10-23 15:32 notifications.el: D-Bus error: "No connection to bus", :session Peter Münster
@ 2011-10-23 16:25 ` Michael Albinus
  2011-10-23 17:15   ` Peter Münster
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Albinus @ 2011-10-23 16:25 UTC (permalink / raw)
  To: Peter Münster; +Cc: help-gnu-emacs

pmlists@free.fr (Peter Münster) writes:

> Hello,

Hi,

> I wanted to try notifications.el, but I get this error:
>
>     D-Bus error: "No connection to bus", :session
>
> when loading it with "(require 'notifications)".
>
> I use emacs-trunk from bzr. Bug or wrong system setup?

I suspect wrong system setup. Do you have a running D-Bus session bus?
You could check for the environment variable $DBUS_SESSION_BUS_ADDRESS.

> TIA for any hint!

Best regards, Michael.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: notifications.el: D-Bus error: "No connection to bus", :session
  2011-10-23 16:25 ` Michael Albinus
@ 2011-10-23 17:15   ` Peter Münster
  2011-10-23 18:26     ` Michael Albinus
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Münster @ 2011-10-23 17:15 UTC (permalink / raw)
  To: help-gnu-emacs

On Sun, Oct 23 2011, Michael Albinus wrote:

> I suspect wrong system setup. Do you have a running D-Bus session bus?

I don't know. Probably not.


> You could check for the environment variable $DBUS_SESSION_BUS_ADDRESS.

There is no such variable.

After
--8<---------------cut here---------------start------------->8---
eval `dbus-launch`
export DBUS_SESSION_BUS_ADDRESS
--8<---------------cut here---------------end--------------->8---
it works.

Shouldn't notifications.el start the dbus itself, if needed?
Or shouldn't it mention in the commentary, that dbus must be running?

(The program "notify-send" works without such problems...)

Thanks for your help!
-- 
           Peter




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: notifications.el: D-Bus error: "No connection to bus", :session
  2011-10-23 17:15   ` Peter Münster
@ 2011-10-23 18:26     ` Michael Albinus
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Albinus @ 2011-10-23 18:26 UTC (permalink / raw)
  To: Peter Münster; +Cc: help-gnu-emacs

pmlists@free.fr (Peter Münster) writes:

> After
> eval `dbus-launch`
> export DBUS_SESSION_BUS_ADDRESS
> it works.
>
> Shouldn't notifications.el start the dbus itself, if needed?

Definitely not. There are several use cases where it isn't desired to
start the D-Bus session automatically. And in dbusbind.c, we have added
code that it doesn't happen.

> Or shouldn't it mention in the commentary, that dbus must be running?

That might be reasonable, indeed.

> (The program "notify-send" works without such problems...)
>
> Thanks for your help!

Best regards, Michael.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-10-23 18:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-23 15:32 notifications.el: D-Bus error: "No connection to bus", :session Peter Münster
2011-10-23 16:25 ` Michael Albinus
2011-10-23 17:15   ` Peter Münster
2011-10-23 18:26     ` Michael Albinus

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.