~ken-vandine/gnome-session/ubuntu_lightdm_gdm3_transition

« back to all changes in this revision

Viewing changes to debian/ubuntu-session.postinst

  • Committer: Ken VanDine
  • Date: 2017-07-03 18:21:09 UTC
  • Revision ID: ken.vandine@canonical.com-20170703182109-tvuu2q6c5p1eamh4
* debian/ubuntu-session.postinst
  - Check for user's sessions that are set to "ubuntu" and set gdm3 
    as the default display manager as recommended.  This just changes
    the default in /etc/X11/default-display-manager, it still requires 
    configure from gdm3 to run after configure from ubuntu-session to 
    complete setting the proper default without prompting the user.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
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.
 
8
 
 
9
set -e
 
10
 
 
11
DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager
 
12
RET=`grep 'XSession=ubuntu' /var/lib/AccountsService/users/*`
 
13
TRANSITION=$?
 
14
 
 
15
if [ "$1" = configure ]; then
 
16
  if [ "$TRANSITION" -eq 0 ]; then
 
17
    echo "/usr/sbin/gdm3" > $DEFAULT_DISPLAY_MANAGER_FILE
 
18
  fi
 
19
fi