Em segunda-feira, 11 de abril de 2011, às 12:42:02, Stanislav Ionascu
escreveu:
> If the apps launch as a user, then do:
> $ echo $DBUS_SESSION_BUS_ADDRESS
>
> and then as root export the result:
> # export DBUS_SESSION_BUS_ADDRESS=result_of_echo_as_user

Not necessarily.

$ sudo DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS $QTDIR/bin/qdbus
Could not connect to D-Bus server: org.freedesktop.DBus.Error.NoReply: Did not
receive a reply. Possible causes include: the remote application did not send
a reply, the message bus security policy blocked the reply, the reply timeout
expired, or the network connection was broken.

The session bus daemon does not accept connections from different users. A
root-owned application must either drop privileges before connecting or fake
the user ID transmitted over the Unix socket's credentials.

--
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

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines

Reply via email to