[PC-BSD Commits] r18017 - pcbsd/current/src-qt4/pc-firstbootgui
svn at pcbsd.org
svn at pcbsd.org
Tue Jul 31 07:33:44 PDT 2012
Author: kris
Date: 2012-07-31 14:33:44 +0000 (Tue, 31 Jul 2012)
New Revision: 18017
Modified:
pcbsd/current/src-qt4/pc-firstbootgui/firstboot.cpp
Log:
Enable the Flash plugin for the user created at the first boot wizard
Modified: pcbsd/current/src-qt4/pc-firstbootgui/firstboot.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-firstbootgui/firstboot.cpp 2012-07-31 10:28:20 UTC (rev 18016)
+++ pcbsd/current/src-qt4/pc-firstbootgui/firstboot.cpp 2012-07-31 14:33:44 UTC (rev 18017)
@@ -395,6 +395,10 @@
QString userCmd = " | pw useradd -n \"" + lineUsername->text() + "\" -c \"" + lineName->text() + "\" -h 0 -s \"/bin/csh\" -m -d \"/home/" + lineUsername->text() + "\" -G \"wheel,operator\"";
system("cat " + ufile.fileName().toLatin1() + userCmd.toLatin1());
ufile.remove();
+
+ // Enable Flash for the new user
+ QString flashCmd = "su -m " + lineUsername->text() + " -c \"flashpluginctl on\"";
+ system(flashCmd.toLatin1());
}
More information about the Commits
mailing list