Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Auto-generate and use the initial XAuth file for PCDM. I will need to…

… randomize the hex key later, but at least this is good enough for testing now.
  • Loading branch information...
commit 7257d51d01a095c4a2bd69939573d92884c3d33d 1 parent ba86ec7
@beanpole135 beanpole135 authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 src-qt4/PCDM/PCDMd
View
6 src-qt4/PCDM/PCDMd
@@ -1,6 +1,6 @@
#!/bin/sh
# Login daemon for PCDM
-# This listens for system login prompts and starts the main PCDM UI appropriately
+# This starts the main PCDM UI appropriately
#------------------------------------
PCDMCONF="/usr/local/etc/pcdm.conf"
@@ -36,7 +36,9 @@ fi
# Allow Auto-Login the first time PCDM starts
touch /tmp/.PCDMAutoLogin
# Make sure the authorization file exists
-touch ${PCDMAUTHFILE}
+setenv XAUTHORITY ${PCDMAUTHFILE} #Set the auth file location
+touch ${PCDMAUTHFILE} #Create the authorication file
+xauth add :0 MIT-MAGIC-COOKIE-1 1234567890 #Add a default entry to the file (will randomize it later)
# Now start the X Server
while [ ! -e /var/run/nologin ]; do
/usr/local/bin/pc-checkxdisplay
Please sign in to comment.
Something went wrong with that request. Please try again.