我正在使用 zsh 和 gdm 来运行 gnome。前段时间我发现变量设置不正确。例如 LANG/LC_ALL 是不正确的(""而不是en_GB.UTF-8)。
""
en_GB.UTF-8
我把.zshrc分成.zshrc和.profile。在后者中,我设置了环境变量,但是如何在会话开始之前设置变量?我尝试了一些选择(.xinitrc, .xsessionrc),但似乎都不起作用。
.zshrc
.profile
.xinitrc
.xsessionrc
编辑为了澄清-我曾经.profile和手动在采购它.zshrc。无论如何它不会改变问题。
gnome gentoo desktop-environment gdm environment-variables
desktop-environment ×1
environment-variables ×1
gdm ×1
gentoo ×1
gnome ×1