Skip to content

Commit

Permalink
Trying different shutdown command
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodmg committed Nov 20, 2023
1 parent 443f472 commit a508167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,5 @@ void MainWindow::showShutdownModal()
void MainWindow::shutdown()
{
shutdownProcess = new QProcess(this);
shutdownProcess->start("/usr/sbin/halt");
shutdownProcess->start("/usr/bin/sudo" "shutdown -r now");
}

0 comments on commit a508167

Please sign in to comment.