1 # Contributor: Alessio Biancalana <dottorblaster@gmail.com >
3 pkgname=gnome-globalmenu
6 echo "Updating Schema..."
7 export GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source`
8 usr/bin/gconftool-2 --makefile-install-rule usr/share/gconf/schemas/${pkgname}.schemas > /dev/null
9 usr/sbin/gconfpkg --install ${pkgname}
10 scrollkeeper-update -q -p var/lib/scrollkeeper
11 update-desktop-database -q
12 #just to remove the lines may added to profile
13 bin/sed '/export GTK_MODULES=globalmenu-gnome/d' -i /etc/profile
15 echo "==> Installation notes:"
16 echo " If you are using XFCE4, edit ~/.config/xfce4/xinitrc(and chmod +x)"
18 echo " export GTK_MODULES=globalmenu-gnome"
19 echo " . /etc/xdg/xfce4/xinitrc"
21 echo " If you are using GNOME, just add the globalmenu applets, and edit the preferences."
23 echo " Available environment values are: (Optical)"
24 echo " GTK_MENUBAR_NO_MAC= eg: \"gedit gnome-settings-daemon\""
25 echo " GLOBALMENU_GNOME_ARGS="
26 echo " ##for many debug messages"
28 echo " ##disable gnome-globalmenu"
30 echo " ##output log file to somewhere else, example: /dev/null"
31 echo " --log-file=\"/path/to/filename\" "
44 export GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source`
45 usr/bin/gconftool-2 --makefile-uninstall-rule usr/share/gconf/schemas/${pkgname}.schemas > /dev/null
46 usr/sbin/gconfpkg --uninstall ${pkgname}
50 scrollkeeper-update -q -p var/lib/scrollkeeper
51 update-desktop-database -q