From aed36b160f3049e393f9a24b80ba6c8a5e9c558f Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 4 Apr 2025 18:30:08 +1100 Subject: feat: uwsm app -> app2unit Also xdg-open -> app2unit --- src/utils/system.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils') diff --git a/src/utils/system.ts b/src/utils/system.ts index 8ccb5d1..360a261 100644 --- a/src/utils/system.ts +++ b/src/utils/system.ts @@ -16,11 +16,11 @@ const execToCmd = (app: AstalApps.Application) => { export const launch = (app: AstalApps.Application) => { let now = Date.now(); - execAsync(["uwsm", "app", "--", app.entry]).catch(() => { + execAsync(["app2unit", "--", app.entry]).catch(() => { // Try manual exec if launch fails (exits with error within 1 second) if (Date.now() - now < 1000) { now = Date.now(); - execAsync(["uwsm", "app", "--", execToCmd(app)]).catch(() => { + execAsync(["app2unit", "--", execToCmd(app)]).catch(() => { // Fallback to regular launch if (Date.now() - now < 1000) { app.frequency--; // Decrement frequency cause launch also increments it -- cgit v1.2.3-freya