https://bbs.deepin.org/post/36237 对于非终端启动的程序能读取到你这种方法配置的环境变量吗?
Featured Collection
Popular Ranking
Popular Events
之后配置用户下的环境变量到~/.profile同样source生效,新建窗口或者重启都不生效,但是在~/.bashrc文件中添加环境变量生效,于是我想/etc/profile默认是不会生效的,之后配置到/etc/bash.bashrc文件中,source后就可以了。
解决方法:
全局配置到/etc/bash.bashrc
用户环境变量配置到~/.bashrc