From 23f52b3f00c901d4ee22b26f30cbd17ef248f585 Mon Sep 17 00:00:00 2001 From: Don Williams Date: Fri, 14 Nov 2025 02:04:49 -0500 Subject: [PATCH] Saving working script before adding to AGS.SH On branch development Your branch is up to date with 'origin/development'. Changes to be committed: new file: install-scripts/ags.launcher.com.github.Aylur.ags --- .../ags.launcher.com.github.Aylur.ags | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 install-scripts/ags.launcher.com.github.Aylur.ags diff --git a/install-scripts/ags.launcher.com.github.Aylur.ags b/install-scripts/ags.launcher.com.github.Aylur.ags new file mode 100755 index 0000000..4cde41c --- /dev/null +++ b/install-scripts/ags.launcher.com.github.Aylur.ags @@ -0,0 +1,18 @@ +#!/usr/bin/gjs -m + +import { exit, programArgs, programInvocationName } from "system"; +import GLib from "gi://GLib"; + +// Ensure GI can see typelibs in /usr/local and the system girepository +GLib.setenv("GI_TYPELIB_PATH", "/usr/local/lib:/usr/lib/girepository-1.0", true); + +imports.package.init({ + name: "com.github.Aylur.ags", + version: "1.9.0", + prefix: "/usr/local", + libdir: "/usr/local/lib", +}); + +const module = await import("resource:///com/github/Aylur/ags/main.js"); +const exitCode = await module.main([programInvocationName, ...programArgs]); +exit(exitCode);