From 7a950c7caf5ff115a8caba9a9fb3e43144a227b8 Mon Sep 17 00:00:00 2001 From: arne Date: Mon, 14 Jun 2021 13:57:44 +0200 Subject: [PATCH] Fix wayland --- .envrc | 1 + shell.nix | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.envrc b/.envrc index 3550a30..2adc787 100644 --- a/.envrc +++ b/.envrc @@ -1 +1,2 @@ use flake +watch_file *.nix diff --git a/shell.nix b/shell.nix index 7e3cd5d..4833549 100644 --- a/shell.nix +++ b/shell.nix @@ -9,6 +9,12 @@ in pkgs.mkShell rec { clojure ]; LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}"; + + # wayland compat + # see https://discourse.ubuntu.com/t/environment-variables-for-wayland-hackers/12750 + WAYLAND_DISPLAY = "no"; + DISPLAY = ":0"; + _JAVA_AWT_WM_NONREPARENTING = "1"; # we need to make sure the library is on the path for JOGL; # also, there's a bug that is avoided with the second config line