Fix default restart command.

This commit is contained in:
Teo Mrnjavac 2015-02-04 11:25:01 +01:00
parent eb2748bab0
commit 4e869b2211
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ FinishedPage::setUpRestart()
{ {
if ( ui->restartCheckBox->isVisible() && if ( ui->restartCheckBox->isVisible() &&
ui->restartCheckBox->isChecked() ) ui->restartCheckBox->isChecked() )
QProcess::execute( "/bin/sh", { m_restartNowCommand } ); QProcess::execute( "/bin/sh", { "-c", m_restartNowCommand } );
} ); } );
} }
} }

View File

@ -1,4 +1,4 @@
--- ---
restartNowEnabled: true restartNowEnabled: true
restartNowChecked: false restartNowChecked: false
restartNowCommand: "systemctl -i reboot" restartNowCommand: /bin/sh -c "systemctl -i reboot"