Changeset 6449f61 for src-qt4/PCDM/PCDMd


Ignore:
Timestamp:
11/04/13 14:04:44 (13 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
b6cbe03
Parents:
7257d51
Message:

Add in the xhost authentication routine when logging in a user. This will allow the user access to the display. Also fix the authorization file cleanup between sessions of PCDM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/PCDM/PCDMd

    r7257d51 r6449f61  
    3636# Allow Auto-Login the first time PCDM starts 
    3737touch /tmp/.PCDMAutoLogin 
    38 # Make sure the authorization file exists 
    39 setenv XAUTHORITY ${PCDMAUTHFILE} #Set the auth file location 
    40 touch ${PCDMAUTHFILE} #Create the authorication file 
    41 xauth add :0 MIT-MAGIC-COOKIE-1 1234567890 #Add a default entry to the file (will randomize it later) 
    4238# Now start the X Server 
    4339while [ ! -e /var/run/nologin ]; do 
    4440  /usr/local/bin/pc-checkxdisplay 
    45  
     41  # Make sure the authorization file does not exist 
     42  if [ -f ${PCDMAUTHFILE} ]; then 
     43    rm ${PCDMAUTHFILE} 
     44  fi 
     45  setenv XAUTHORITY ${PCDMAUTHFILE} #Set the auth file location 
     46  touch ${PCDMAUTHFILE} #Create the (empty) authorization file 
     47  xauth add :0 MIT-MAGIC-COOKIE-1 1234567890 #Add a default entry to the file (will randomize it later) 
    4648  if [ -n "$vnccmd" ] ; then 
    4749    # Start VNC 
Note: See TracChangeset for help on using the changeset viewer.