KDE adoption of D-Bus
thiago.macieira at trolltech.com
Thu Feb 16 07:41:10 PST 2006
Lennart Poettering wrote:
>I people really dislike that libdbus would have a hard dependency on
>libX11 a solution using dlopen() on libX11 should be simple
>enough. The library name and the API of libX11 is pretty stable. The
>symbols that would need to be imported are:
>for modifying the data you'd need XChangeProperty() and
>If this has a realistic chance to be merged, I would be willing to
>contribute a patch that uses dlopen() to access the X11 display.
I much prefer the solution Havoc pointed out in another email (which I
read only after having replied here):
use an external program that would do the auto-launch or read the
property. Then we'd have no dlopen trickery to open the libX11.so file.
It would be a build-time decision whether to create this executable. And
it would be up to distributors to decide whether they want to break their
dbus packages into one that doesn't require X11 and one that does.
The disadvantage is that, for each program that uses the bus, one extra
program would be run. But I guess it's an acceptable cost if we want to
get people to run D-Bus by default.
Thiago José Macieira - thiago.macieira AT trolltech.com
Trolltech AS - Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060216/226ed23b/attachment.pgp
More information about the dbus