summarylogtreecommitdiffstats
path: root/compiz.install
blob: 4c346d149f62b601fe9add4844303df7b7e11543 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
post_install() {
    echo "  -> Updating icon cache..."
    gtk-update-icon-cache -q -f -t /usr/share/icons/hicolor
    echo "  -> Updating XDG menu database..."
    update-desktop-database -q

    ls /usr/share/glib-2.0/schemas 2>/dev/null | grep -qm1 org.compiz
    if [ $? -eq 0 ]; then
        echo "  -> Recompiling the GSettings database... "
        glib-compile-schemas /usr/share/glib-2.0/schemas
    fi
}

pre_upgrade() {
    if [ -f /usr/share/gconf/schemas/compiz.schemas ]; then
	    echo "  -> Uninstalling GConf schemas... "
   	    gconfpkg --uninstall compiz
    fi
}

post_upgrade() {
    post_install $1
}

post_remove() {
    echo "  -> Updating icon cache..."
    gtk-update-icon-cache -q -f -t /usr/share/icons/hicolor    
    echo " -> Updating XDG menu database..."
    update-desktop-database -q

    if [ -d /usr/share/glib-2.0/schemas ]; then
        echo "  -> Recompiling the GSettings database... "
        glib-compile-schemas /usr/share/glib-2.0/schemas
    fi
}