Commit 329e5fe
committed
fix: set XDG_CONFIG_DIRS and XDG_DATA_DIRS defaults in tryGetPamEnvVars
When snap or other environments strip XDG_CONFIG_DIRS and XDG_DATA_DIRS,
and PAM env files do not define them, child shells receive no value for
these vars. Apply XDG Base Directory spec defaults (/etc/xdg and
/usr/local/share:/usr/share) following the same pattern already used
for XDG_RUNTIME_DIR.
Fixes #2970
Signed-off-by: majiayu000 <1835304752@qq.com>1 parent 0ee1224 commit 329e5fe
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
760 | 760 | | |
761 | 761 | | |
762 | 762 | | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
763 | 769 | | |
764 | 770 | | |
0 commit comments