[Seek Help] 图形界面下的PATH设置
Tofloor
poster avatar
ludongping
deepin
2022-04-26 17:44
Author

命令行下面可以在 .bash_profile里面设置PATH,我设置了各种本地软件的路径;

但是我有个图形界面程序,里面打印出来的PATH好像只有/etc/profile里面的内容,连我用户主目录下面的 .profile 都没有起作用,

PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin

请教一下,该如何设置图形界面的PATH?

Reply Favorite View the author
All Replies
thepoy
deepin
2022-04-26 18:31
#1

我用vscode时能获取到我在 zshenv中添加的全局环境变量,但用sublime时就只获取 bashrc中的环境变量。

所以我把所有的全局环境变量全都放在了 /etc/profile.d里,这样的话啥程序都能获取到我设置的环境变量了。

Reply View the author
ludongping
deepin
2022-04-26 18:47
#2
thepoy

我用vscode时能获取到我在 zshenv中添加的全局环境变量,但用sublime时就只获取 bashrc中的环境变量。

所以我把所有的全局环境变量全都放在了 /etc/profile.d里,这样的话啥程序都能获取到我设置的环境变量了。

好的,我也试试看,多谢

Reply View the author
enforcee
deepin
2022-04-26 22:10
#3

~/.config/environment.d/envvars.conf

Reply View the author