~pete-woods/hud/quit-action

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
description "Window Stack Bridge"

start on started dbus
stop on desktop-end

pre-start script
        if [ -z $DBUS_SESSION_BUS_ADDRESS ]; then
                echo "Working around missing DBUS_SESSION_BUS_ADDRESS variable"
                printf "DuplicateSignature\0DBusSessionAddressNotSet" | /usr/share/apport/recoverable_problem -p `pidof -s -o 1 init` 
                . "${HOME}/.cache/upstart/dbus-session"
                initctl set-env "DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS"
        fi
end script

exec @pkglibexecdir@/window-stack-bridge