Files
Arch-Hyprland/install-scripts
Don Williams 7afaf65973 Arch: robust AGS v1.9.0 fix — env wrapper + hardened launcher patching
Problem
- AGS v1 under GJS ESM ignores GIR Repository.prepend_*; typelibs in /usr/local aren’t discovered reliably.
- On Arch, users may install AGS into /usr/local while system typelibs can also live under /usr/lib64/ags or /usr/lib/ags.

Solution
- Keep the tolerant ESM patcher (no-op safe): remove deprecated GIR repo calls; ensure GLib import; inject GI_TYPELIB_PATH via GLib.setenv when editing the ESM main.
- Add a distro-agnostic wrapper at /usr/local/bin/ags that sets:
  - GI_TYPELIB_PATH=/usr/local/lib64/girepository-1.0:/usr/local/lib/girepository-1.0:/usr/lib64/girepository-1.0:/usr/lib/girepository-1.0:/usr/local/lib64:/usr/local/lib:/usr/lib64/ags:/usr/lib/ags:$GI_TYPELIB_PATH
  - LD_LIBRARY_PATH=/usr/local/lib64:/usr/local/lib:$LD_LIBRARY_PATH
  Then execs: /usr/bin/gjs -m "$MAIN_JS" (resolved under /usr/local/share or /usr/share).

Why
- Ensures AGS v1 runs reliably on Arch without depending solely on fragile in-place edits; mirrors the working Fedora fix.

File
- install-scripts/ags.sh
2025-11-03 17:08:58 -05:00
..
2025-03-20 15:24:26 +09:00
2025-11-03 12:28:29 -05:00
2025-02-27 16:52:27 +09:00
2025-03-09 16:13:26 +09:00
2025-03-20 12:12:15 +09:00
2025-02-27 16:52:27 +09:00
2025-02-27 16:52:27 +09:00
2025-02-27 16:52:27 +09:00
2025-02-27 16:52:27 +09:00
2025-02-27 16:52:27 +09:00
2025-11-03 12:28:25 -05:00
2025-02-27 16:52:27 +09:00
2025-07-25 17:13:16 +09:00
2025-02-27 16:52:27 +09:00
2025-02-27 16:52:27 +09:00
2025-02-27 16:52:27 +09:00
2025-02-27 16:52:27 +09:00
2025-03-24 22:08:56 +09:00