Feng Yu
deepin
2021-01-12 04:24 loaden:
明天我分别在Ubuntu,Debian, Arch, Fedora系统下测试后再回复你。
只希望如果我测试这些系统登陆图形界面时,是加载 ~/.profile 的时候,还请你能解释一下为什么。我记忆中,似乎Arch不一样,有区别,Arch默认加载的好像是 ~/.bash_profile
https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html
没有什么比bash的官方文档更具有说服力了。这个才是bash真正的行为。某些发行版会在/etc/skel/中的.bashrc进行魔改,比如我就见过什么诸如:
[ -f ~/.bash_profile ] && . ~/.bash_profile
这一类奇葩的配置
Reply Like 0 View the author


中文 
问题:~/.profile 文件默认不加载,无论UOS还是Deepin,这是不对的,开发人员能不能解释下,这是BUG,还是特意如此?
相关知识:https://wiki.archlinux.org/index.php/Bash_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)