~tombeckmann/elementaryos/pantheon-xsession-settings-fix-startup

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Sergey "Shnatsel" Davidoff
  • Date: 2012-05-18 16:04:41 UTC
  • Revision ID: shnatsel@gmail.com-20120518160441-9zgl1rbqj8qsxi2r
reverted previous commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
  ;;
12
12
esac
13
13
 
14
 
#DEBHELPER#
 
 
b'\\ No newline at end of file'
 
14
# Apply GConf default and mandatory values for Pantheon session
 
15
 
 
16
signal_daemons()
 
17
{
 
18
    # Tell all running daemons to reload their databases
 
19
    pkill -HUP -x gconfd-2 >/dev/null 2>&1 || true
 
20
}
 
21
 
 
22
case "$1" in
 
23
  configure|upgrade)
 
24
    if which update-gconf-defaults >/dev/null 2>&1 ; then
 
25
        mkdir -p /var/lib/gconf/pantheon.default
 
26
    fi
 
27
  ;;
 
28
  triggered)
 
29
    for trigger in $2; do
 
30
      case $trigger in
 
31
        /usr/share/gconf/pantheon/default)
 
32
          update-gconf-defaults --source /usr/share/gconf/pantheon/default \
 
33
          --destination /var/lib/gconf/pantheon.default --no-signal
 
34
        ;;
 
35
      esac
 
36
    done
 
37
    signal_daemons
 
38
    exit 0
 
39
  ;;
 
40
esac
 
41
 
 
42
#DEBHELPER#
 
43
 
 
44
# Upon installation/upgrade, regenerate all databases, because in this case 
 
45
# there will be no trigger run
 
46
update-gconf-defaults --source /usr/share/gconf/pantheon/default \
 
47
                      --destination /var/lib/gconf/pantheon.default --no-signal
 
48
signal_daemons