emacs-devel
[Top][All Lists]
Advanced

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

Re: Reading D-Bus messages


From: Michael Albinus
Subject: Re: Reading D-Bus messages
Date: Tue, 18 Aug 2009 17:24:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

YAMAMOTO Mitsuharu <address@hidden> writes:

>>>>>> On Sun, 16 Aug 2009 14:30:54 +0200, Michael Albinus <address@hidden> 
>>>>>> said:
>
>> Finally, it was sufficient to add the D-Bus file descriptors via
>> add_keyboard_wait_descriptor. Thanks for pushing me into the right
>> direction!
>
> But again, the documentation of
> dbus_connection_get_socket/dbus_connection_get_unix_fd says "DO NOT
> read or write to the file descriptor, or try to select() on it; use
> DBusWatch for main loop integration."  What you want to do is actually
> a kind of "main loop integration", though it looks a bit different
> from those in typical GUI toolkits.
>
> Actually, I'm not sure how the above caveat is serious/critical.
> Maybe you can ask at some D-Bus list.

I confess that the documentation sounds dramatic. That's why I've
rewritten it, using DBusWatch objects. This works pretty well, too.

Thanks, also to Daniel (whose code I have stolen), and best regards, Michael.




reply via email to

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