safe2
This commit is contained in:
+2
-1
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user