diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/gnome-panel/gnome-panel.install |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/gnome-panel/gnome-panel.install')
-rw-r--r-- | extra/gnome-panel/gnome-panel.install | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/extra/gnome-panel/gnome-panel.install b/extra/gnome-panel/gnome-panel.install new file mode 100644 index 000000000..7fef8cf05 --- /dev/null +++ b/extra/gnome-panel/gnome-panel.install @@ -0,0 +1,34 @@ +pkgname=gnome-panel + +post_install() { + GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source` + usr/bin/gconftool-2 --config-source="${GCONF_CONFIG_SOURCE}" --direct --load \ + etc/gconf/schemas/panel-default-setup.entries >/dev/null + usr/sbin/gconfpkg --install ${pkgname} + + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source` + if [ -f opt/gnome/etc/gconf/schemas/panel-default-setup.entries ]; then + usr/bin/gconftool-2 --config-source="${GCONF_CONFIG_SOURCE}" --direct --unload \ + opt/gnome/etc/gconf/schemas/panel-default-setup.entries >/dev/null + else + usr/bin/gconftool-2 --config-source="${GCONF_CONFIG_SOURCE}" --direct --unload \ + etc/gconf/schemas/panel-default-setup.entries > /dev/null + fi + usr/sbin/gconfpkg --uninstall ${pkgname} +} + +post_remove() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} |