blob: 761bab0d3bf2a638834da90d36df640011de15bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import GLib from "gi://GLib?version=2.0"
import Gtk from "gi://Gtk?version=4.0"
import Astal from "gi://Astal?version=4.0"
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")
.then(({ default: Adw }) => Adw.init())
.catch(() => void 0)
export default mkApp(Astal.Application)
|