2010/9/21 Elliot Smith <[email protected]>: > On Tue, 2010-09-21 at 12:03 +0100, Pertti Kellomäki wrote: >> On harmattan, the address of the session dbus daemon is available in a >> file, so one can do >> >> source /tmp/session_bus_address.user >> >> in order to get the address of the session daemon. Is there something >> equivalent on MeeGo? Our test scripts need to chat with the daemon. > > You can get it via the DBUS_SESSION_BUS_ADDRESS environment variable.
I think you can guess why this answer is insufficient by looking at what /tmp/session_bus_address.user contains: [sbox-HARMATTAN_X86: ~] > cat /tmp/session_bus_address.user DBUS_SESSION_BUS_ADDRESS='unix:abstract=/var/tmp/dbus-J5ERfILq2A,guid=57ad2af329c46e0ee87a285300003543'; export DBUS_SESSION_BUS_ADDRESS; So DBUS_SESSION_BUS_ADDRESS is used "automatically", but you don't necessarily have it set up properly in your environment e.g. in scratchbox terminal session (until you 'source' that scriptlet). -- Ville M. Vainio @@ Forum Nokia _______________________________________________ MeeGo-dev mailing list [email protected] http://lists.meego.com/listinfo/meego-dev
