Howto determine the dbus session address??

Stef Bon stef at bononline.nl
Tue Aug 17 05:13:26 PDT 2010


  On 08/17/2010 01:40 PM, Rémi Denis-Courmont wrote:
> On Tue, 17 Aug 2010 13:02:16 +0200, Stef Bon<stef at bononline.nl>  wrote:
>> For that to work the script which is run when an USB device is plugged
> in,
>> has to know the dbus session address, like:
>>
>>
> DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-XLcqpOgL0d,guid=75c2894c8b7781e2d1c489984c6a48ac
>
> If you the DBus session is not defined, your service most probably belongs
> on the system bus...
>

No sorry, I'm afraid you do not understand.
The script to find out the dbus address runs under a complete other user 
(aka root), and
the problem here is that it has to find out the dbus session address for 
all user using my construction.

So all the users are known, as well as the display device (for every 
individual user ).

How to determine to dbus session address for these users, to send a 
message using dbus.notify.

Stef


More information about the dbus mailing list