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

svn at pcbsd.org svn at pcbsd.org
Thu Aug 30 13:59:24 PDT 2012


Author: kenmoore
Date: 2012-08-30 20:59:24 +0000 (Thu, 30 Aug 2012)
New Revision: 18726

Modified:
   pcbsd-projects/PCDM/pcdm-backend.cpp
Log:
Fix up the system environment detection for PCDM



Modified: pcbsd-projects/PCDM/pcdm-backend.cpp
===================================================================
--- pcbsd-projects/PCDM/pcdm-backend.cpp	2012-08-30 20:45:46 UTC (rev 18725)
+++ pcbsd-projects/PCDM/pcdm-backend.cpp	2012-08-30 20:59:24 UTC (rev 18726)
@@ -84,14 +84,14 @@
   //Create the external process
   QProcess* p = new QProcess(0);
   //Setup the process environment
-  QProcessEnvironment environ = p->processEnvironment(); //current environment
+  QProcessEnvironment environ = QProcessEnvironment::systemEnvironment(); //current environment
   //environ.insert("LOGNAME",username);
   //environ.insert("USERNAME",username);
   //environ.insert("HOME",homeDir);
   //environ.insert("PATH",environ->value("PATH")+":"+homeDir+"/bin");
   //p->setProcessEnvironment(environ);
   //Startup the process
-  Backend::log("Current Envronment: " + environ.toStringList().join(" ") );
+  Backend::log("Current Environment: " + environ.toStringList().join(" ") );
   Backend::log("Debug Mode: not starting DE");
   //p->startDetached(cmd);
 



More information about the Commits mailing list