Permalink
Browse files

Fix setting flashpluginctl on when the username may have a special char

  • Loading branch information...
1 parent 72d26c4 commit 389027390a5c8159e84f5d2b53bc5010e6c3495a @kmoore134 kmoore134 committed Oct 3, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 src-qt4/pc-firstbootgui/firstboot.cpp
@@ -450,8 +450,7 @@ void Installer::saveSettings()
ufile.remove();
// Enable Flash for the new user
- QString flashCmd = "su -m " + lineUsername->text() + " -c \"flashpluginctl on\"";
- system(flashCmd.toLatin1());
+ QProcess::execute("su", QStringList() << "-m" << lineUsername->text() << "-c" << "/usr/local/bin/flashpluginctl on" );
// Encrypt the users home-directory?
if ( checkEnc->isChecked() )

0 comments on commit 3890273

Please sign in to comment.