source: src-qt4/PCDM/PCDMd @ 90dc161

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since 90dc161 was 90dc161, checked in by Ken Moore <ken@…>, 18 months ago

Completely revamp how PCDM uses the previous login information. Now you no longer need to specify which desktop to auto-login to if you have auto-login selected. It will first try to check for previous login information for that user, then fall back on the last login for the system in order to try and auto login. Also fix the PCDMd script a bit so that autologins work properly when triggered.

  • Property mode set to 100755
File size: 863 bytes
Line 
1#!/bin/sh
2# Login daemon for PCDM
3# This listens for system login prompts and starts the main PCDM UI appropriately
4#------------------------------------
5
6PCDMCONF="/usr/local/etc/pcdm.conf"
7
8#See if XDMCP support is enabled for logging in to this system
9XDMCP=`grep "^ALLOW_REMOTE_LOGIN=" ${PCDMCONF} 2>/dev/null | cut -d '=' -f 2`
10if [ "XDMCP" = "TRUE" ]; then
11  # XDMCP is enabled
12  echo "Starting PCDM XDMCP Server"
13  while [ ! -e /var/run/nologin ]; do
14    xinit /usr/local/bin/PCDM-session --once -- /usr/local/bin/X :0 -displayfd /usr/local/share/PCDM/.xdisplay -indirect ${HOST}
15  done
16else
17  # No XDMCP Enabled
18
19  # Allow Auto-Login the first time PCDM starts
20  touch /tmp/.PCDMAutoLogin
21  # Now start the X Server
22  while [ ! -e /var/run/nologin ]; do
23    /usr/local/bin/pc-checkxdisplay
24    xinit /usr/local/bin/PCDM-session --once -- :0 
25  done
26fi
27       
Note: See TracBrowser for help on using the repository browser.