mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-24 20:15:21 -04:00
qs: replace all which commands with command -v
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -713,7 +713,7 @@ Singleton {
|
||||
|
||||
Process {
|
||||
id: dgopCheckProcess
|
||||
command: ["which", "dgop"]
|
||||
command: ["sh", "-c", "command -v dgop"]
|
||||
running: false
|
||||
onExited: exitCode => {
|
||||
dgopAvailable = (exitCode === 0);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user