2
# -*- Mode: sh; indent-tabs-mode: nil; tab-width: 4 -*-
4
# Copyright (C) 2011 Canonical Ltd
5
# Author: Michael Terry <michael.terry@canonical.com>
7
# This program is free software: you can redistribute it and/or modify it under
8
# the terms of the GNU General Public License as published by the Free Software
9
# Foundation, version 3 of the License.
11
# See http://www.gnu.org/copyleft/gpl.html the full text of the license.
13
# This wrapper merely ensures that dbus-daemon lives only as long as this
14
# script does. Otherwise, it's very easy for dbus-daemon to be autolaunched
15
# and detached from the greeter.
17
trap cleanup TERM EXIT
22
if [ -n "$DBUS_SESSION_BUS_PID" ]; then
23
kill "$DBUS_SESSION_BUS_PID"
25
if [ -n "$CMD_PID" ]; then
31
eval `dbus-launch --sh-syntax`