summaryrefslogtreecommitdiffstats
path: root/gnome/post-install
blob: 9ddaf844c13ff103ed6c2d942cbb7e7835310da5 (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
36
37
38
39
40
41
42
43
44
45
46
#!/bin/sh
if [ ! -d /etc/gconf/gconf.xml.system ]; then
	mkdir -p /etc/gconf/gconf.xml.system
fi 
chmod 755 /etc/gconf/gconf.xml.system

sed -i "s/^id:[3-5]/id:4/" /etc/inittab

# glib schemas
/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
# desktop database
update-desktop-database > /dev/null
# update icons cache
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
# mime database
update-mime-database /usr/share/mime > /dev/null

# gconf schemas
for port in `pkginfo -i |awk '{print $1}'`
do
	gconfpkg --install $port
	SCHEMAS="`pkginfo -l $port | grep etc/gconf/schemas/.*\.schemas$`"

	for SCHEMA in $SCHEMAS
	do
	export GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source`
	        /usr/bin/gconftool-2 --makefile-install-rule /$SCHEMA > /dev/null
	done
done

# reload gconf caches
if [ ! -z "`pidof gconfd-2`" ]
then
        killall -HUP gconfd-2 > /dev/null
fi

# scrolls
for port in `pkginfo -i |awk '{print $1}'`
do
	SCROLLS="`pkginfo -l $port | grep usr/share/omf/.*\.omf$`"

	for SCROLL in $SCROLLS
	do
	        /usr/bin/scrollkeeper-install -q -p /var/lib/scrollkeeper /$SCROLL > /dev/null
	done
done