summaryrefslogtreecommitdiffstats
path: root/base/dbus/80-dbus
blob: 676d995511245e3f330ee321e90bbb5eb28d44d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

# launches a session dbus instance

dbuslaunch="`which dbus-launch 2>/dev/null`"
if [ -n "$dbuslaunch" ] && [ -x "$dbuslaunch" ] && [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
  if [ -n "$command" ]; then
    command="$dbuslaunch --exit-with-session $command"
  else
    eval `$dbuslaunch --sh-syntax --exit-with-session`
  fi
fi