diff --git a/ags/scripts/utils.ts b/ags/scripts/utils.ts index 1204f17..4a847a4 100644 --- a/ags/scripts/utils.ts +++ b/ags/scripts/utils.ts @@ -1,5 +1,9 @@ import { exec, execAsync, Gio, GLib } from "astal"; +export function getDecoded(text: (Uint8Array)): string { + const decoder = new TextDecoder('utf-8'); + return decoder.decode(text); +} export function getHyprlandInstanceSig(): (string|null) { return GLib.getenv("HYPRLAND_INSTANCE_SIGNATURE");