Commit 28fddc72 authored by Maxime Accadia's avatar Maxime Accadia
Browse files

Fix #3

Utilisation d'une configuration dconf.
parent 24fbde0a
......@@ -2,12 +2,16 @@
case "$1" in
configure)
sed -i 's%^#logo=.*%logo="/usr/share/pixmaps/logo.png"%' /etc/gdm3/greeter.dconf-defaults
if which update-initramfs >/dev/null 2>&1
then
update-initramfs -u
fi
if which update-initramfs >/dev/null 2>&1
then
dconf update
fi
;;
abort-upgrade|abort-deconfigure|abort-remove)
......
......@@ -10,11 +10,14 @@ case "${1}" in
fi
done
sed -i 's%^\(logo="/usr/share/pixmaps/logo.png\)"*%#\1"%' /etc/gdm3/greeter.dconf-defaults
if which update-initramfs >/dev/null 2>&1; then
update-initramfs -u
fi
if which dconf >/dev/null 2>&1
then
dconf update
fi
;;
purge)
;;
......
......@@ -7,14 +7,11 @@
## Utilisation
```bash
install -m 644 logo.png /usr/share/pixmaps
```
Modifier ensuite le fichier `/etc/gdm3/greeter.dconf-defaults` :
```
[org/gnome/login-screen]
logo='/usr/share/pixmaps/logo.png'
install -m 644 logo.png /usr/share/pixmaps
install -m 644 dconf_profile /etc/dconf/profile/gdm
mkdir /etc/dconf/db/gdm.d
install -m 644 dconf_02-logo /etc/dconf/db/gdm.d/02-logo
dconf update
```
## Licences
......
[org/gnome/login-screen]
logo='/usr/share/pixmaps/logo.png'
user-db:user
system-db:gdm
file-db:/usr/share/gdm/greeter-dconf-defaults
......@@ -43,6 +43,9 @@ install -m 644 icons/folder-uga.svg "$FAKEROOT/usr/share/icons"
# GDM3
install -m 644 gdm3/logo.png "$FAKEROOT/usr/share/pixmaps"
install -m 644 dconf_profile "$FAKEROOT/etc/dconf/profile/gdm"
mkdir "$FAKEROOT/etc/dconf/db/gdm.d"
install -m 644 dconf_02-logo "$FAKEROOT/etc/dconf/db/gdm.d/02-logo"
dpkg-deb --build design-linux-uga
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment