From f2c9123a88b3e56c99f97f3b1790bd50f0909045 Mon Sep 17 00:00:00 2001 From: Sam & Claude Date: Tue, 12 May 2026 17:44:52 +0200 Subject: [PATCH] Use absolute sudo path in live installer --- firstboot/gui/qml-installer/main.cpp | 4 ++-- firstboot/gui/qml-installer/pages/CompletePage.qml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/firstboot/gui/qml-installer/main.cpp b/firstboot/gui/qml-installer/main.cpp index 58f46b6d..c808fa30 100644 --- a/firstboot/gui/qml-installer/main.cpp +++ b/firstboot/gui/qml-installer/main.cpp @@ -494,7 +494,7 @@ public: } }); - installProcess->start(QStringLiteral("sudo"), + installProcess->start(QStringLiteral("/usr/local/bin/sudo"), QStringList() << QStringLiteral("-n") << QStringLiteral("/usr/local/bin/clawdie-live-commit.sh")); @@ -572,7 +572,7 @@ public: } }); - installProcess->start(QStringLiteral("sudo"), + installProcess->start(QStringLiteral("/usr/local/bin/sudo"), QStringList() << QStringLiteral("-n") << QStringLiteral("/bin/sh") << QStringLiteral("-c") diff --git a/firstboot/gui/qml-installer/pages/CompletePage.qml b/firstboot/gui/qml-installer/pages/CompletePage.qml index c9421c74..e1ae8b8e 100644 --- a/firstboot/gui/qml-installer/pages/CompletePage.qml +++ b/firstboot/gui/qml-installer/pages/CompletePage.qml @@ -127,7 +127,7 @@ ColumnLayout { enabled: tracker.finished onClicked: { - backend.runCommand("sudo", ["-n", "/sbin/reboot"]) + backend.runCommand("/usr/local/bin/sudo", ["-n", "/sbin/reboot"]) } }