emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alternative D-Bus connection


From: Michael Albinus
Subject: Re: Alternative D-Bus connection
Date: Mon, 23 Aug 2010 16:06:53 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Paul Fertser <address@hidden> writes:

> Hi,

Hi,

> Yes, to the best of my understanding to leverage this restriction one
> needs to modify dbusbind.c. Currently the emacs bindings accept only
> :session or :system for the bus name and use dbus_bus_get() to get one
> of them. It should support also arbitrary strings and call
> dbus_connection_open() instead (in xd_initialize()). One should also
> not forget to call dbus_connection_unref() after he's done (according to
> http://dbus.freedesktop.org/doc/api/html/group__DBusConnection.html).

I've just committed some patches to the trunk which allow accessing
alternative buses. If you are interested in, you might try it.

> I also suspect that dbus_bus_get has an interesting undesired
> side-effect: it'll kill the app if connection drops.  Not exactly what
> you want to be done with your emacs.

I reset this by

  dbus_connection_set_exit_on_disconnect (connection, FALSE);

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]