Don't pass LD_PRELOAD on to launched apps
The wrapper preloads gtk4-layer-shell for the grid, but apps started from it inherited that, which broke GTK 3 apps like LibreWolf with "gdk_display_manager_get() was called before gtk_init()".
This commit is contained in:
parent
42d273798b
commit
ab0704e682
1 changed files with 4 additions and 0 deletions
4
grid.js
4
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue