MATE下如何设置环境变量?

use*_*115 5 desktop-environment environment-variables mate-desktop

我刚刚在 Ubuntu Saucy 下安装了 MATE。没问题。除了我试图设置Texmaker,LaTeX IDE,并且无法弄清楚如何设置pdflatexTexmaker 产生的 LaTeX 工具(等)的路径。

现在我已经在 Ubuntu Precise 和 Gnome 回退下使用 Texmaker 好几年了,我知道在~/.gnomerc. 但我找不到~/.gnomercMate 下的等价物。(你会想到,.materc但似乎没有。)

那么如何在Mate下设置环境变量呢?

use*_*115 1

我(最终)回答了我自己的问题!解决办法是将该export PATH = ...语句添加*.sh/etc/profile.d. 这是在 bash shell 和窗口会话管理器启动时执行的。它适用于所有用户,.gnomerc与我原来的帖子中的解决方案不同。

有关更多详细信息,请参阅https://help.ubuntu.com/community/EnvironmentVariables