diff options
author | Havoc Pennington <hp@redhat.com> | 2003-05-04 08:54:24 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2003-05-04 08:54:24 +0000 |
commit | df01c98cc7e83f3336e501fcf2eeee52c95464fb (patch) | |
tree | e92ccc82056908b25eb9cab6e9ad763b8febd9dc /tools/dbus-launch.1 | |
parent | c0158234d046381a6bc8c004c82577576977d0d7 (diff) |
2003-05-04 Havoc Pennington <hp@pobox.com>
* tools/dbus-launch.c: implement
* bus/main.c (main), bus/bus.c (bus_context_new):
implement --print-pid and --fork
Diffstat (limited to 'tools/dbus-launch.1')
-rw-r--r-- | tools/dbus-launch.1 | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/tools/dbus-launch.1 b/tools/dbus-launch.1 index 9342423d..c0fb03f6 100644 --- a/tools/dbus-launch.1 +++ b/tools/dbus-launch.1 @@ -24,14 +24,19 @@ about D-BUS. See also the man page for \fIdbus-daemon-1\fP. .PP Here is an example of how to use \fIdbus-launch\fP with an -sh-compatible shell: +sh-compatible shell to start the per-session bus daemon: .nf - VARIABLES=`dbus-launch` - eval $VARIABLES - echo "D-BUS per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS" + ## test for an existing bus daemon, just to be safe + if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then + ## if not found, launch a new one + eval `dbus-launch --exit-with-session` + echo "D-BUS per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS" + export DBUS_SESSION_BUS_ADDRESS + fi .fi +You might run something like that in your login scripts. .SH OPTIONS The following options are supported: |