From 4e869b221103e55d9f3c081362b2b61a43b13a06 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Wed, 4 Feb 2015 11:25:01 +0100 Subject: [PATCH] Fix default restart command. --- src/modules/finished/FinishedPage.cpp | 2 +- src/modules/finished/finished.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/finished/FinishedPage.cpp b/src/modules/finished/FinishedPage.cpp index f95fc702a..609856975 100644 --- a/src/modules/finished/FinishedPage.cpp +++ b/src/modules/finished/FinishedPage.cpp @@ -90,7 +90,7 @@ FinishedPage::setUpRestart() { if ( ui->restartCheckBox->isVisible() && ui->restartCheckBox->isChecked() ) - QProcess::execute( "/bin/sh", { m_restartNowCommand } ); + QProcess::execute( "/bin/sh", { "-c", m_restartNowCommand } ); } ); } } diff --git a/src/modules/finished/finished.conf b/src/modules/finished/finished.conf index f93acb587..77635be11 100644 --- a/src/modules/finished/finished.conf +++ b/src/modules/finished/finished.conf @@ -1,4 +1,4 @@ --- restartNowEnabled: true restartNowChecked: false -restartNowCommand: "systemctl -i reboot" +restartNowCommand: /bin/sh -c "systemctl -i reboot"