3
# Check for user's sessions that are set to "ubuntu" and set gdm3
4
# as the default display manager as recommended. This just changes
5
# the default in /etc/X11/default-display-manager, it still requires
6
# configure from gdm3 to run after configure from ubuntu-session to
7
# complete setting the proper default without prompting the user.
11
DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager
12
RET=`grep 'XSession=ubuntu' /var/lib/AccountsService/users/*`
15
if [ "$1" = configure ]; then
16
if [ "$TRANSITION" -eq 0 ]; then
17
echo "/usr/sbin/gdm3" > $DEFAULT_DISPLAY_MANAGER_FILE