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...
1 parent ba86ec7 commit 7257d51d01a095c4a2bd69939573d92884c3d33d Ken Moore committed Nov 4, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 src-qt4/PCDM/PCDMd
@@ -1,6 +1,6 @@
# Login daemon for PCDM
-# This listens for system login prompts and starts the main PCDM UI appropriately
+# This starts the main PCDM UI appropriately
@@ -36,7 +36,9 @@ fi
# Allow Auto-Login the first time PCDM starts
touch /tmp/.PCDMAutoLogin
# Make sure the authorization file exists
+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

0 comments on commit 7257d51

Please sign in to comment.