diff --git a/quickshell/Common/Theme.qml b/quickshell/Common/Theme.qml index 354d70aa..805a1dd0 100644 --- a/quickshell/Common/Theme.qml +++ b/quickshell/Common/Theme.qml @@ -140,7 +140,7 @@ Singleton { Component.onCompleted: { Quickshell.execDetached(["mkdir", "-p", stateDir]); - Proc.runCommand("matugenCheck", ["which", "matugen"], (output, code) => { + Proc.runCommand("matugenCheck", ["sh", "-c", "command -v matugen"], (output, code) => { matugenAvailable = (code === 0) && !envDisableMatugen; const isGreeterMode = (typeof SessionData !== "undefined" && SessionData.isGreeterMode); diff --git a/quickshell/PLUGINS/ExampleStartupCheck/StartupCheck.qml b/quickshell/PLUGINS/ExampleStartupCheck/StartupCheck.qml index 928d0217..92dd75c4 100644 --- a/quickshell/PLUGINS/ExampleStartupCheck/StartupCheck.qml +++ b/quickshell/PLUGINS/ExampleStartupCheck/StartupCheck.qml @@ -8,7 +8,7 @@ QtObject { // done({ title, details }) -> block with an expandable details body // A synchronous variant (no argument, return the result) is also supported. function check(done) { - Proc.runCommand("exampleStartupCheck.depCheck", ["which", "boregard"], (stdout, exitCode) => { + Proc.runCommand("exampleStartupCheck.depCheck", ["sh", "-c", "command -v boregard"], (stdout, exitCode) => { if (exitCode === 0) { done(null); return; diff --git a/quickshell/Services/CavaService.qml b/quickshell/Services/CavaService.qml index 25d101bb..622e2c60 100644 --- a/quickshell/Services/CavaService.qml +++ b/quickshell/Services/CavaService.qml @@ -18,7 +18,7 @@ Singleton { Process { id: cavaCheck - command: ["which", "cava"] + command: ["sh", "-c", "command -v cava"] running: false onExited: exitCode => { root.cavaAvailable = exitCode === 0 && Quickshell.env("DMS_DISABLE_CAVA") !== "1"; diff --git a/quickshell/Services/DgopService.qml b/quickshell/Services/DgopService.qml index 0d00f806..99a7b445 100644 --- a/quickshell/Services/DgopService.qml +++ b/quickshell/Services/DgopService.qml @@ -713,7 +713,7 @@ Singleton { Process { id: dgopCheckProcess - command: ["which", "dgop"] + command: ["sh", "-c", "command -v dgop"] running: false onExited: exitCode => { dgopAvailable = (exitCode === 0); diff --git a/quickshell/Services/MuxService.qml b/quickshell/Services/MuxService.qml index 04347cea..0591dc78 100644 --- a/quickshell/Services/MuxService.qml +++ b/quickshell/Services/MuxService.qml @@ -47,7 +47,7 @@ Singleton { Process { id: tmuxCheckProcess - command: ["which", "tmux"] + command: ["sh", "-c", "command -v tmux"] running: false onExited: code => { root.tmuxAvailable = (code === 0); @@ -56,7 +56,7 @@ Singleton { Process { id: zellijCheckProcess - command: ["which", "zellij"] + command: ["sh", "-c", "command -v zellij"] running: false onExited: code => { root.zellijAvailable = (code === 0); diff --git a/quickshell/Services/SessionService.qml b/quickshell/Services/SessionService.qml index 83c78965..e21af8d6 100644 --- a/quickshell/Services/SessionService.qml +++ b/quickshell/Services/SessionService.qml @@ -71,7 +71,7 @@ Singleton { Process { id: detectUwsmProcess running: false - command: ["which", "uwsm"] + command: ["sh", "-c", "command -v uwsm"] onExited: function (exitCode) { hasUwsm = (exitCode === 0); @@ -123,7 +123,7 @@ Singleton { Process { id: detectWtypeProcess running: false - command: ["which", "wtype"] + command: ["sh", "-c", "command -v wtype"] onExited: exitCode => { wtypeAvailable = (exitCode === 0); } @@ -132,7 +132,7 @@ Singleton { Process { id: detectPrimeRunProcess running: false - command: ["which", "prime-run"] + command: ["sh", "-c", "command -v prime-run"] onExited: function (exitCode) { if (exitCode === 0) { @@ -146,7 +146,7 @@ Singleton { Process { id: detectNvidiaOffloadProcess running: false - command: ["which", "nvidia-offload"] + command: ["sh", "-c", "command -v nvidia-offload"] onExited: function (exitCode) { if (exitCode === 0) {