the hud package ships a messed up upstart session job

Bug #1299806 reported by Oliver Grawert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
hud (Ubuntu)
New
High
Unassigned

Bug Description

going through the session upstart jobs on image 268 i found that the hud.conf upstart session job carries its pre-start script twice and generally looks a bit disordered (paste error or some such ?)

http://paste.ubuntu.com/7179957/

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

Changed in hud (Ubuntu):
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.