Linux puskom-ProLiant-DL385-Gen10 5.4.0-150-generic #167~18.04.1-Ubuntu SMP Wed May 24 00:51:42 UTC 2023 x86_64
/
var
/
lib
/
dpkg
/
info
/
/var/lib/dpkg/info/gdm3.config
#!/bin/sh # Debian gdm package configuration script # Copyright 2000-2001 Branden Robinson. # Licensed under the GNU General Public License, version 2. See the file # /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>. set -e # source debconf library . /usr/share/debconf/confmodule THIS_PACKAGE=gdm3 DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager # set default display manager # On upgrade from < artful or new installs, suppress the display manager # selection prompt if any user uses the Ubuntu session, and the previously # configured display manager was lightdm. # Remove this after 18.04 LTS. TRANSITION=false if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt "3.24.2-1ubuntu7~" && grep -qs /usr/sbin/lightdm $DEFAULT_DISPLAY_MANAGER_FILE; then for file in /var/lib/AccountsService/users/*; do if grep -qs XSession=ubuntu $file; then TRANSITION=true fi done fi db_get shared/default-x-display-manager OLD_DEFAULT="$RET" db_metaget shared/default-x-display-manager owners OWNERS="$RET" db_metaget shared/default-x-display-manager choices CHOICES="$RET" if [ "$OWNERS" != "$CHOICES" ]; then db_subst shared/default-x-display-manager choices $OWNERS db_fset shared/default-x-display-manager seen false fi # Remove this "true" branch after 18.04 LTS. if [ "$TRANSITION" = true ]; then db_set shared/default-x-display-manager gdm3 db_fset shared/default-x-display-manager seen true else db_input high shared/default-x-display-manager || true db_go fi # using this display manager? db_get shared/default-x-display-manager CURRENT_DEFAULT="$RET" # set a flag to indicate to postinst that we need to update from debconf if [ "$OLD_DEFAULT" != "$CURRENT_DEFAULT" ]; then DEFAULT_DISPLAY_MANAGER_DIR=$(dirname $DEFAULT_DISPLAY_MANAGER_FILE) test -e $DEFAULT_DISPLAY_MANAGER_DIR || mkdir -p $DEFAULT_DISPLAY_MANAGER_DIR touch $DEFAULT_DISPLAY_MANAGER_FILE.debconf-update fi exit 0