[PC-BSD Commits] r19434 - pcbsd-projects/PCDM

svn at pcbsd.org svn at pcbsd.org
Fri Sep 21 10:46:52 PDT 2012


Author: kenmoore
Date: 2012-09-21 17:46:52 +0000 (Fri, 21 Sep 2012)
New Revision: 19434

Modified:
   pcbsd-projects/PCDM/PCDM-multi
   pcbsd-projects/PCDM/main.cpp
   pcbsd-projects/PCDM/pcdm-config.cpp
Log:
Fix up the PCDM-multi daemon for auto-login, and add some extra debugging



Modified: pcbsd-projects/PCDM/PCDM-multi
===================================================================
--- pcbsd-projects/PCDM/PCDM-multi	2012-09-21 17:37:01 UTC (rev 19433)
+++ pcbsd-projects/PCDM/PCDM-multi	2012-09-21 17:46:52 UTC (rev 19434)
@@ -1,8 +1,8 @@
 #!/bin/sh
 
 # Allow Auto-Login the first time PCDM starts
-xinit "/usr/local/bin/PCDM-single -AutoLogin" -- :0
+xinit /usr/local/bin/PCDM-single -AutoLogin -- :0
 while [ 1 ]; do
   # Always return to PCDM after a logout (prevent root shell opening)
-  xinit "/usr/local/bin/PCDM-single" -- :0
+  xinit /usr/local/bin/PCDM-single -- :0
 done

Modified: pcbsd-projects/PCDM/main.cpp
===================================================================
--- pcbsd-projects/PCDM/main.cpp	2012-09-21 17:37:01 UTC (rev 19433)
+++ pcbsd-projects/PCDM/main.cpp	2012-09-21 17:46:52 UTC (rev 19434)
@@ -26,6 +26,7 @@
   // Load the configuration file
   Config::loadConfigFile("/usr/local/share/PCDM/pcdm.conf");
   
+  qDebug() << "ALtriggered:" << ALtriggered;
   if( ALtriggered && Config::useAutoLogin() ){
     //Setup the Auto Login
     Backend::startAutoLogin();

Modified: pcbsd-projects/PCDM/pcdm-config.cpp
===================================================================
--- pcbsd-projects/PCDM/pcdm-config.cpp	2012-09-21 17:37:01 UTC (rev 19433)
+++ pcbsd-projects/PCDM/pcdm-config.cpp	2012-09-21 17:46:52 UTC (rev 19434)
@@ -71,6 +71,7 @@
 }
 
 bool Config::useAutoLogin(){
+  qDebug() << "confStruct[3]:" << confStruct[3];
   if(confStruct[3].toLower()=="true"){ return TRUE; }
   else{ return FALSE; }	
 }



More information about the Commits mailing list