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

svn at pcbsd.org svn at pcbsd.org
Fri Sep 7 07:45:32 PDT 2012


Author: kenmoore
Date: 2012-09-07 14:45:32 +0000 (Fri, 07 Sep 2012)
New Revision: 18932

Modified:
   pcbsd-projects/PCDM/pcdm-backend.cpp
Log:
Also log the DE startup outputs to PCDM.log



Modified: pcbsd-projects/PCDM/pcdm-backend.cpp
===================================================================
--- pcbsd-projects/PCDM/pcdm-backend.cpp	2012-09-07 14:29:12 UTC (rev 18931)
+++ pcbsd-projects/PCDM/pcdm-backend.cpp	2012-09-07 14:45:32 UTC (rev 18932)
@@ -112,8 +112,11 @@
   environ.insert("LANG",langCode+"."+environ.value("MM_CHARSET")); //Set the proper localized language
   environ.insert("MAIL","/var/mail/"+username); //Set the mail variable
   environ.insert("GROUP",username); //Set the proper group id
+  environ.insert("SHLVL","1"); //Set the proper shell level
   p->setProcessEnvironment(environ);
   p->setWorkingDirectory(homeDir); //set the current directory to the user's home directory
+  //Log the DE startup outputs as well
+  p->setStandardOutputFile("/usr/local/share/PCDM/PCDM.log",QIODevice::Append);
   // Startup the process
   p->start(cmd);
   // Wait for the process to start before continuing



More information about the Commits mailing list