[PC-BSD Commits] r18934 - pcbsd-projects/PCDM
svn at pcbsd.org
svn at pcbsd.org
Fri Sep 7 08:34:07 PDT 2012
Author: kenmoore
Date: 2012-09-07 15:34:07 +0000 (Fri, 07 Sep 2012)
New Revision: 18934
Modified:
pcbsd-projects/PCDM/pcdm-backend.cpp
Log:
Add in an quick test for running all the scripts in a directory when logging in, but before starting the DE.
Modified: pcbsd-projects/PCDM/pcdm-backend.cpp
===================================================================
--- pcbsd-projects/PCDM/pcdm-backend.cpp 2012-09-07 15:05:05 UTC (rev 18933)
+++ pcbsd-projects/PCDM/pcdm-backend.cpp 2012-09-07 15:34:07 UTC (rev 18934)
@@ -94,8 +94,11 @@
Backend::log("Starting up Desktop environment ("+saveX+") as user ("+saveUsername+")");
//Use the saved information and clear it
QString username = saveUsername;
- QString cmd = "su "+username+" -c "+saveX; //switch user command to start the DE
- QString cmd1 = "saveX &; su "+username;
+ QString excmd = "U=`ls ";
+ excmd.append("/usr/local/share/pcbsd/xstartup");
+ excmd.append("`; for i in ${U}; do ./${i}; done; ");
+ excmd.append(saveX);
+ QString cmd = "su "+username+" -c \""+saveX+"\""; //switch user command to start the DE
saveUsername.clear();
saveX.clear();
More information about the Commits
mailing list