I am trying to set an environment variable system wide.
Following the ubuntu site recommendations , I set it up to my /etc/environment file.
The thing is when I log out and log in again, I have to source it if I want my environment variable to be set. What am I missing ?
Thank you,
Content :
MYVAR="/home/user/mypath"
/etc/environment
file? And I hope your logout/login sequence does not correspond to "close terminal / open terminal".