~gerboland/unity-2d/testability-test-fixes

« back to all changes in this revision

Viewing changes to debian/unity-2d.postrm

  • Committer: Oliver Grawert
  • Date: 2011-01-26 11:34:38 UTC
  • mto: This revision was merged to the branch mainline in revision 373.
  • Revision ID: ogra@ubuntu.com-20110126113438-hfahvp17fk6oxkmw
merge unity-2d-default-settings package as new unity-2d toplevel package

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
set -e
 
3
 
 
4
case "$1" in
 
5
  remove|purge)
 
6
    if which update-gconf-defaults >/dev/null 2>&1 && [ -d /usr/share/gconf/mandatory/unity-2d ]; then
 
7
        update-gconf-defaults --source /usr/share/gconf/unity-2d/mandatory \
 
8
        --destination /var/lib/gconf/unity-2d.mandatory
 
9
        update-gconf-defaults --source /usr/share/gconf/unity-2d/default \
 
10
        --destination /var/lib/gconf/unity-2d.default
 
11
    fi
 
12
    if [ -d /var/lib/gconf/unity-2d.mandatory ]; then
 
13
        rm -rf /var/lib/gconf/unity-2d.mandatory
 
14
    fi
 
15
    if [ -d /var/lib/gconf/unity-2d.default ]; then
 
16
        rm -rf /var/lib/gconf/unity-2d.default
 
17
    fi
 
18
    if [ -x /usr/lib/gdm/gdm-set-default-session ] ; then
 
19
        /usr/lib/gdm/gdm-set-default-session --remove unity-2d || true
 
20
    fi
 
21
    ;;
 
22
esac
 
23
 
 
24
#DEBHELPER#