summaryrefslogtreecommitdiff
path: root/utils/system.ts
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-14 18:15:09 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-14 18:15:09 +1100
commitb5648cf9869b583487a00f548667719c69f7d4aa (patch)
tree535007a25d11e51297564fdcee9e6c68b07a95d7 /utils/system.ts
parentlauncher: fix math derive and vars (diff)
downloadcaelestia-shell-b5648cf9869b583487a00f548667719c69f7d4aa.tar.gz
caelestia-shell-b5648cf9869b583487a00f548667719c69f7d4aa.tar.bz2
caelestia-shell-b5648cf9869b583487a00f548667719c69f7d4aa.zip
use GLib instead of external which
Diffstat (limited to 'utils/system.ts')
-rw-r--r--utils/system.ts11
1 files changed, 1 insertions, 10 deletions
diff --git a/utils/system.ts b/utils/system.ts
index 99e9d7c..5d77908 100644
--- a/utils/system.ts
+++ b/utils/system.ts
@@ -1,16 +1,7 @@
-import { exec, execAsync, GLib } from "astal";
+import { execAsync, GLib } from "astal";
import type AstalApps from "gi://AstalApps";
import { osIcons } from "./icons";
-export const inPath = (bin: string) => {
- try {
- exec(`which ${bin}`);
- } catch {
- return false;
- }
- return true;
-};
-
export const launch = (app: AstalApps.Application) => {
execAsync(["uwsm", "app", "--", app.entry]).catch(() => {
app.frequency--; // Decrement frequency cause launch also increments it