Comment 1 for bug 1299806

Revision history for this message
Oliver Grawert (ogra) wrote :

below a a fixed version:

--- snip ---

# Currently started by the dbus service file
# start on dbus-activation com.canonical.hud

description "Unity HUD"

start on started dbus and ((xsession SESSION=ubuntu-touch) or (xsession SESSION=ubuntu-touch-surfaceflinger) or (xsession SESSION=ubuntu))
stop on desktop-end

env HUD_SERVICE_TIMEOUT=0
export HUD_SERVICE_TIMEOUT

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 /usr/lib/arm-linux-gnueabihf/hud/hud-service