summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAylur <[email protected]>2025-01-06 00:37:31 +0100
committerAylur <[email protected]>2025-01-06 00:37:42 +0100
commit70ed5584541e4fe2161428d1983ce12e77978291 (patch)
treea7230c01b3df172a79bd1cdb06c92f0f35aec61b
parent3cf849f9be8b278835ee24f99956918a628c8ed1 (diff)
fix(gjs): app.launch
-rw-r--r--lang/gjs/src/gtk4/app.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/lang/gjs/src/gtk4/app.ts b/lang/gjs/src/gtk4/app.ts
index 7906993..ab257eb 100644
--- a/lang/gjs/src/gtk4/app.ts
+++ b/lang/gjs/src/gtk4/app.ts
@@ -4,6 +4,10 @@ import { mkApp } from "../_app"
Gtk.init()
+// stop this from leaking into subprocesses
+// and gio launch invocations
+GLib.unsetenv("LD_PRELOAD")
+
// users might want to use Adwaita in which case it has to be initialized
// it might be common pitfall to forget it because `App` is not `Adw.Application`
await import("gi://Adw?version=1")