Friday, April 26, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 25881  / 3 Years ago, sat, july 31, 2021, 12:14:04

I run ubuntu 12.04.1 LTS. And I can't get what is the order/priority for loading profile files. When I start the system and login using GUI which file is loaded? And why? What if run login-shell? Will it be the same? Actually right now I can't get why my ~/.profile doesn't load when system starts because here I see it should:



https://help.ubuntu.com/community/EnvironmentVariables


More From » login

 Answers
2

You may define a variable in every file:



ORDER=${ORDER}+"/etc/profile"


respectively



ORDER=${ORDER}+"~/.profile"


and perform an



echo ${ORDER}


to see, what was involved and in which order. Of course it will not tell you, if there were different scripts you missed.



So if you see one source mentioned, read that script to look, whether one script sources another one, and include these too.



/etc/bash.bashrc and ~/.bashrc and ~/.bash_login come to mind, as well as things from /etc/default.


[#33601] Monday, August 2, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eeperant

Total Points: 39
Total Questions: 106
Total Answers: 117

Location: Finland
Member since Sat, Dec 5, 2020
3 Years ago
;