Skip to content

Commit

Permalink
fix(gjs): app.launch
Browse files Browse the repository at this point in the history
  • Loading branch information
Aylur committed Jan 5, 2025
1 parent 3cf849f commit 70ed558
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lang/gjs/src/gtk4/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 70ed558

Please sign in to comment.