[MeeGo-dev] Getting the address of the session dbus daemon

Thiago Macieira thiago at kde.org
Tue Sep 21 05:53:22 PDT 2010


Em Terça-feira 21 Setembro 2010, às 14:29:46, Thiago Macieira escreveu:
> The bus address is stored in a hidden X11 window and you can obtain it by 
> querying. dbus-launch automatically gets it:

Oh, I forgot to say: applications automatically use that method, depending on 
the D-Bus version.

For whatever reason, on some systems (like Harmattan), it doesn't work. I 
guess the library is patched:

~ $ qdbus
Could not connect to D-Bus server: : 

So you can just use a special setting:
~ $ export DBUS_SESSION_BUS_ADDRESS=autolaunch:
~ $ qdbus
:1.1
[more stuff here]

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

Qt Developer Days 2010  -  Munich Oct 11-13  -  San Francisco Nov 1-3
For more information and to register: http://qt.nokia.com/qtdevdays2010
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.meego.com/pipermail/meego-dev/attachments/20100921/d56cb18b/attachment.pgp>


More information about the MeeGo-dev mailing list