From 1360eb40dd09b5289c0f0ceeb8f30bb1069f1a2f Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Wed, 7 Feb 2024 14:57:53 +0100 Subject: [PATCH] x11 session type --- env.nu | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/env.nu b/env.nu index 53f4e9e..8f3d40a 100644 --- a/env.nu +++ b/env.nu @@ -269,3 +269,9 @@ $env.PATH = ($env.PATH | prepend ($env.HOME + '/.npmbin/bin') | prepend ($env.HOME + '/.venv/bin') ) + +$env.XDG_SESSION_TYPE = if (tty | str starts-with "/dev/pts") { + "x11" +} else { + "tty" +}