mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
System: replaced "which" by "whereis" as it's more likely to be installed by default
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user