1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-25 04:25:22 -04:00

qs: replace all which commands with command -v

This commit is contained in:
bbedward
2026-06-23 22:49:34 -04:00
parent 21ddc3cc3f
commit 14f21b6c6d
6 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ Singleton {
Component.onCompleted: { Component.onCompleted: {
Quickshell.execDetached(["mkdir", "-p", stateDir]); 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; matugenAvailable = (code === 0) && !envDisableMatugen;
const isGreeterMode = (typeof SessionData !== "undefined" && SessionData.isGreeterMode); const isGreeterMode = (typeof SessionData !== "undefined" && SessionData.isGreeterMode);
@@ -8,7 +8,7 @@ QtObject {
// done({ title, details }) -> block with an expandable details body // done({ title, details }) -> block with an expandable details body
// A synchronous variant (no argument, return the result) is also supported. // A synchronous variant (no argument, return the result) is also supported.
function check(done) { 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) { if (exitCode === 0) {
done(null); done(null);
return; return;
+1 -1
View File
@@ -18,7 +18,7 @@ Singleton {
Process { Process {
id: cavaCheck id: cavaCheck
command: ["which", "cava"] command: ["sh", "-c", "command -v cava"]
running: false running: false
onExited: exitCode => { onExited: exitCode => {
root.cavaAvailable = exitCode === 0 && Quickshell.env("DMS_DISABLE_CAVA") !== "1"; root.cavaAvailable = exitCode === 0 && Quickshell.env("DMS_DISABLE_CAVA") !== "1";
+1 -1
View File
@@ -713,7 +713,7 @@ Singleton {
Process { Process {
id: dgopCheckProcess id: dgopCheckProcess
command: ["which", "dgop"] command: ["sh", "-c", "command -v dgop"]
running: false running: false
onExited: exitCode => { onExited: exitCode => {
dgopAvailable = (exitCode === 0); dgopAvailable = (exitCode === 0);
+2 -2
View File
@@ -47,7 +47,7 @@ Singleton {
Process { Process {
id: tmuxCheckProcess id: tmuxCheckProcess
command: ["which", "tmux"] command: ["sh", "-c", "command -v tmux"]
running: false running: false
onExited: code => { onExited: code => {
root.tmuxAvailable = (code === 0); root.tmuxAvailable = (code === 0);
@@ -56,7 +56,7 @@ Singleton {
Process { Process {
id: zellijCheckProcess id: zellijCheckProcess
command: ["which", "zellij"] command: ["sh", "-c", "command -v zellij"]
running: false running: false
onExited: code => { onExited: code => {
root.zellijAvailable = (code === 0); root.zellijAvailable = (code === 0);
+4 -4
View File
@@ -71,7 +71,7 @@ Singleton {
Process { Process {
id: detectUwsmProcess id: detectUwsmProcess
running: false running: false
command: ["which", "uwsm"] command: ["sh", "-c", "command -v uwsm"]
onExited: function (exitCode) { onExited: function (exitCode) {
hasUwsm = (exitCode === 0); hasUwsm = (exitCode === 0);
@@ -123,7 +123,7 @@ Singleton {
Process { Process {
id: detectWtypeProcess id: detectWtypeProcess
running: false running: false
command: ["which", "wtype"] command: ["sh", "-c", "command -v wtype"]
onExited: exitCode => { onExited: exitCode => {
wtypeAvailable = (exitCode === 0); wtypeAvailable = (exitCode === 0);
} }
@@ -132,7 +132,7 @@ Singleton {
Process { Process {
id: detectPrimeRunProcess id: detectPrimeRunProcess
running: false running: false
command: ["which", "prime-run"] command: ["sh", "-c", "command -v prime-run"]
onExited: function (exitCode) { onExited: function (exitCode) {
if (exitCode === 0) { if (exitCode === 0) {
@@ -146,7 +146,7 @@ Singleton {
Process { Process {
id: detectNvidiaOffloadProcess id: detectNvidiaOffloadProcess
running: false running: false
command: ["which", "nvidia-offload"] command: ["sh", "-c", "command -v nvidia-offload"]
onExited: function (exitCode) { onExited: function (exitCode) {
if (exitCode === 0) { if (exitCode === 0) {