This commit is contained in:
2025-12-01 06:46:13 -04:00
parent c8d6711466
commit fa9367c43a
+2 -1
View File
@@ -5,8 +5,9 @@ import AstalApps from "gi://AstalApps";
import AstalHyprland from "gi://AstalHyprland"; import AstalHyprland from "gi://AstalHyprland";
// Check if uwsm exists and is active, handling errors gracefully
export const uwsmIsActive: boolean = await execAsync( export const uwsmIsActive: boolean = await execAsync(
"uwsm check is-active" "sh -c 'which uwsm > /dev/null 2>&1 && uwsm check is-active'"
).then(() => true).catch(() => false); ).then(() => true).catch(() => false);
const astalApps: AstalApps.Apps = new AstalApps.Apps(); const astalApps: AstalApps.Apps = new AstalApps.Apps();