waveterm/pkg/util/pamparse
Evan Simkowitz 9ff430bbd7
Better XDG directory variable fix for Snap (#1701)
This fix will overwrite the XDG variables when creating a shell session
and only if the installation is Snap (as determined by the presence of
the `$SNAP` environment variable). It also will parse the user's PAM
files, if present, to ensure that if the XDG variables were set there,
they're restored. Otherwise, if the variables are set in an RC or
profile file, we'll already pick it up when the shell starts.

closes #1696

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-01-10 11:06:15 -08:00
..
pamparse_test.go Better XDG directory variable fix for Snap (#1701) 2025-01-10 11:06:15 -08:00
pamparse.go Better XDG directory variable fix for Snap (#1701) 2025-01-10 11:06:15 -08:00