x11 session type

This commit is contained in:
Thomas Forgione 2024-02-07 14:57:53 +01:00
parent b887e133d3
commit 1360eb40dd
1 changed files with 6 additions and 0 deletions

6
env.nu
View File

@ -269,3 +269,9 @@ $env.PATH = ($env.PATH
| prepend ($env.HOME + '/.npmbin/bin') | prepend ($env.HOME + '/.npmbin/bin')
| prepend ($env.HOME + '/.venv/bin') | prepend ($env.HOME + '/.venv/bin')
) )
$env.XDG_SESSION_TYPE = if (tty | str starts-with "/dev/pts") {
"x11"
} else {
"tty"
}