summaryrefslogtreecommitdiffstats
path: root/gdm/post-install
blob: 813106c1826e6c58578668e3dcd2c181895e86c0 (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
#!/bin/sh

port=gdm

getent group gdm > /dev/null 2>&1 || /usr/sbin/groupadd -g 21 gdm
getent passwd gdm > /dev/null 2>&1 || /usr/sbin/useradd -c 'Gnome Display Manager' -u 21 -g gdm -d /var/lib/gdm -s /sbin/nologin gdm
/bin/passwd -l gdm
/bin/chown -R gdm:gdm /var/lib/gdm

# corrige le répertoire de gdm
sed "s|gdm:x:21:21:GDM Daemon User:/dev/null:/sbin/nologin|gdm:x:21:21:GDM Daemon User:/var/lib/gdm:/sbin/nologin|" -i /etc/passwd

# gconf schemas
/usr/sbin/gconfpkg --install $port

# glib schemas
/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas

# scrolls
SCROLLS="`pkginfo -l $port | grep usr/share/omf/.*\.omf$`"

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

# icon cache
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor

# End of file