Fix default restart command.

main
Teo Mrnjavac 10 years ago
parent eb2748bab0
commit 4e869b2211

@ -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 } );
} );
}
}

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

Loading…
Cancel
Save