System: replaced "which" by "whereis" as it's more likely to be installed by default

This commit is contained in:
Lemmy
2025-12-29 16:47:46 -05:00
parent de68fd6d21
commit 5bab582284
8 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ Singleton {
if (strategy === "auto") {
// Check if systemd-inhibit is available
try {
var systemdResult = Quickshell.execDetached(["which", "systemd-inhibit"]);
var systemdResult = Quickshell.execDetached(["whereis", "systemd-inhibit"]);
strategy = "systemd";
Logger.d("IdleInhibitor", "Using systemd-inhibit strategy");
return;
@@ -37,7 +37,7 @@ Singleton {
{}
try {
var waylandResult = Quickshell.execDetached(["which", "wayhibitor"]);
var waylandResult = Quickshell.execDetached(["whereis", "wayhibitor"]);
strategy = "wayland";
Logger.d("IdleInhibitor", "Using wayhibitor strategy");
return;