I am added variable in /etc/environment
, but after restarting variable sets only for root, other users need execute source etc/environment
or they don't get any value:
user: echo $VAR
# blank
root: echo $VAR
value
(I know we can set up variables per user, but in my case I need global variable for all users.)