[PC-BSD Commits] r18426 - pcbsd/current/src-qt4/pc-usermanager

svn at pcbsd.org svn at pcbsd.org
Mon Aug 13 09:31:45 PDT 2012


Author: kris
Date: 2012-08-13 16:31:44 +0000 (Mon, 13 Aug 2012)
New Revision: 18426

Modified:
   pcbsd/current/src-qt4/pc-usermanager/usermanagerback.cpp
Log:

When we add new desktop users, auto-enable the flash-plugin



Modified: pcbsd/current/src-qt4/pc-usermanager/usermanagerback.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-usermanager/usermanagerback.cpp	2012-08-13 14:44:01 UTC (rev 18425)
+++ pcbsd/current/src-qt4/pc-usermanager/usermanagerback.cpp	2012-08-13 16:31:44 UTC (rev 18426)
@@ -417,6 +417,13 @@
 		   QProcess::execute("chroot", args);
 		else
 		   QProcess::execute("chpass", args);
+
+		if ( chroot.isEmpty() ) {
+		   qDebug() << "Enabling Flash Plugin for " << userIt->getUsername();
+		   QString flashCmd = "su -m " + userIt->getUsername() + " -c \"flashpluginctl on\"";
+		   system(flashCmd.toLatin1());
+		}
+
                 break;
             case 3:
                 //Delete User



More information about the Commits mailing list