From a508167bf8505eb167a934734d79e188ace2f7f1 Mon Sep 17 00:00:00 2001 From: Rodrigo Mendez Date: Sun, 19 Nov 2023 22:04:13 -0600 Subject: [PATCH] Trying different shutdown command --- mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 898f1cc..b258984 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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"); }