Fix default restart command.
This commit is contained in:
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…
Reference in New Issue
Block a user