Quesion

Daniel P. Berrange dan at berrange.com
Wed Sep 28 03:22:50 PDT 2005


On Wed, Sep 28, 2005 at 02:17:32PM +0400, Igor V. Youdytsky wrote:
> But session... :
> 
> pitcher at LinuxOffice1:~> dbus-daemon --session --print-address
> unix:abstract=/tmp/dbus-T5BENDBwvM,guid=cba43a4343a9891b31f79f3a082cb800
> pitcher at LinuxOffice1:~> dbus-monitor --session
> Failed to open connection to session message bus: Unable to determine
> the address of the message bus


After the 'dbus-daemon' starts up & prints its address, you need
to use this address to set the DBUS_SESSION_BUS_ADDRESS env
variable, so in your example, try:

  $ dbus-daemon --session --print-address
  unix:abstract=/tmp/dbus-T5BENDBwvM,guid=cba43a4343a9891b31f79f3a082cb800
  $ DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-T5BENDBwvM,guid=cba43a4343a9891b31f79f3a082cb800
  $ export DBUS_SESSION_BUS_ADDRESS
  $ dbus-monitor --session

To automatically start the session bus when you login to X, one might
have the following in $HOME/.xsession:

  #!/bin/sh

  DBUS_SESSION_BUS_ADDRESS=`/usr/bin/dbus-daemon --session --print-address --fork`
  export DBUS_SESSION_BUS_ADDRESS

  exec gnome-session

Regards,
Dan.
-- 
|=-            GPG key: http://www.berrange.com/~dan/gpgkey.txt       -=|
|=-       Perl modules: http://search.cpan.org/~danberr/              -=|
|=-           Projects: http://freshmeat.net/~danielpb/               -=|
|=-   berrange at redhat.com  -  Daniel Berrange  -  dan at berrange.com    -=|
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/dbus/attachments/20050928/442927de/attachment.pgp


More information about the dbus mailing list