From fa9367c43ad391c5c21e4e7f074438f7cb7cd467 Mon Sep 17 00:00:00 2001 From: Olivier Date: Mon, 1 Dec 2025 06:46:13 -0400 Subject: [PATCH] safe2 --- src/modules/apps.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/apps.ts b/src/modules/apps.ts index 86b868e..4abfe83 100644 --- a/src/modules/apps.ts +++ b/src/modules/apps.ts @@ -5,8 +5,9 @@ import AstalApps from "gi://AstalApps"; import AstalHyprland from "gi://AstalHyprland"; +// Check if uwsm exists and is active, handling errors gracefully 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); const astalApps: AstalApps.Apps = new AstalApps.Apps();