File: generate-config

package info (click to toggle)
gdm3 3.30.2-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 15,696 kB
  • sloc: ansic: 27,919; sh: 5,307; makefile: 1,144; xml: 817; sed: 16
file content (27 lines) | stat: -rw-r--r-- 639 bytes parent folder | download | duplicates (2)
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
#! /bin/sh
set -e

DEFAULTS_GENERATED=/var/lib/gdm3/greeter-dconf-defaults
DEFAULTS_DIR=/usr/share/gdm/dconf

if [ -d /var/lib/gdm3 ]; then
  needed=no
  if [ -f $DEFAULTS_GENERATED ]; then
    for f in \
        $DEFAULTS_DIR $DEFAULTS_DIR/*-settings \
        $DEFAULTS_DIR/locks $DEFAULTS_DIR/locks/*-locks \
        /etc/gdm3/greeter.dconf-defaults; do
      if [ "$f" -nt $DEFAULTS_GENERATED ]; then
        needed=yes
        break
      fi
    done
  else
    needed=yes
  fi
  if [ "$needed" = yes ]; then
    dconf compile $DEFAULTS_GENERATED $DEFAULTS_DIR
  fi
fi

pkill --signal 'HUP' --uid 'Debian-gdm' 'dconf-service' || true