个人工具

UbuntuHelp:EnvironmentVariables/PageDiscussion

来自Ubuntu中文

跳转至: 导航, 搜索

This is the discussion page for: EnvironmentVariables/ Please sign your comments by pasting `-- duncan-lithgow <<DateTime(2008-07-24T22:15:52+0200)>>` after them. -- duncan-lithgow <<DateTime(2008-07-24T22:15:52+0200)>> Created this template

Pages linking to EnvironmentalVariables

<<FullSearchCached(EnvironmentalVariables)>>


.bashrc

under "System-wide environment variables" it says: " /etc/bash.bashrc - This is is the system-wide version of the ~/.bashrc file. Ubuntu is configured by default to execute this file whenever a user enters a shell or the desktop environment. " However my understanding is that .bashrc will only be executed for interactive, non-login shells - i.e. terminal emulators opened under a graphical desktop session. This would make it an unsuitable place for setting locale variables intended to affect graphical programmes. -- launchpad-rafflesnagoya <<DateTime(2009-03-31T13:24:21+0900)>> You might want to point out that environment variables added to .bashrc will only be seen by bash, whereas environment variables added to .profile will be seen by all programs.