~indicator-applet-developers/hud/trunk.14.04

« back to all changes in this revision

Viewing changes to data/hud.conf.in

  • Committer: CI bot
  • Author(s): Pete Woods, Marcus Tomlinson
  • Date: 2014-06-04 14:04:03 UTC
  • mfrom: (390.1.44 trunk)
  • Revision ID: ps-jenkins@lists.canonical.com-20140604140403-a70c33snru5b6k4x
Harden HUD against misbehaving applications

Report the offending applications using Apport's recoverable problem tool.
Switch to using shared pointers where possible for managing memory. Fixes: 1298656, 1316473, 1322050, 1325538

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
description "Unity HUD"
2
2
 
3
 
pre-start script
4
 
        if [ -z $DBUS_SESSION_BUS_ADDRESS ]; then
5
 
                echo "Working around missing DBUS_SESSION_BUS_ADDRESS variable"
6
 
                printf "DuplicateSignature\0DBusSessionAddressNotSet" | /usr/share/apport/recoverable_problem -p `pidof -s -o 1 init`
7
 
                . "${HOME}/.cache/upstart/dbus-session"
8
 
                initctl set-env "DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS"
9
 
        fi
10
 
end script
11
 
 
12
3
# Currently started by the dbus service file
13
4
# start on dbus-activation com.canonical.hud
14
5
stop on desktop-end
15
6
start on started dbus and ((xsession SESSION=ubuntu-touch) or (xsession SESSION=ubuntu-touch-surfaceflinger) or (xsession SESSION=ubuntu))
16
7
 
17
 
env HUD_SERVICE_TIMEOUT=0
18
 
export HUD_SERVICE_TIMEOUT
19
 
 
20
8
pre-start script
21
9
        if [ -z $DBUS_SESSION_BUS_ADDRESS ]; then
22
10
                echo "Working around missing DBUS_SESSION_BUS_ADDRESS variable"