diff --git a/grid.js b/grid.js index 83156cb..a81b181 100644 --- a/grid.js +++ b/grid.js @@ -5,6 +5,10 @@ import GLib from "gi://GLib" import Gtk from "gi://Gtk?version=4.0" import LayerShell from "gi://Gtk4LayerShell" +// The wrapper preloads gtk4-layer-shell, which is only needed for this process. Apps launched from +// here would inherit it, and it breaks GTK 3 apps like Firefox. +GLib.unsetenv("LD_PRELOAD") + // Keep in sync with the overview section in the niri config. const ZOOM = 0.25 const WORKSPACE_ANCHOR = 0.15