Fix default restart command.
This commit is contained in:
parent
eb2748bab0
commit
4e869b2211
@ -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 } );
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
restartNowEnabled: true
|
restartNowEnabled: true
|
||||||
restartNowChecked: false
|
restartNowChecked: false
|
||||||
restartNowCommand: "systemctl -i reboot"
|
restartNowCommand: /bin/sh -c "systemctl -i reboot"
|
||||||
|
Loading…
Reference in New Issue
Block a user