checkupdates if exists

This commit is contained in:
2026-04-08 00:44:38 +02:00
parent 32b77e0ced
commit 2ec8ef6299
+5 -1
View File
@@ -66,7 +66,7 @@ Singleton {
Process { Process {
id: cmdDetect id: cmdDetect
command: ["sh", "-c", "command -v yay || command -v paru"] command: ["sh", "-c", "command -v checkupdates || command -v yay || command -v paru"]
running: true running: true
stdout: StdioCollector { stdout: StdioCollector {
@@ -80,7 +80,11 @@ Singleton {
helper = "pacman"; helper = "pacman";
} }
if (helper === "checkupdates") {
updatesProc.command = [helper];
} else {
updatesProc.command = [helper, "-Qu"]; updatesProc.command = [helper, "-Qu"];
}
root.commandReady = true; root.commandReady = true;
} }
} }