LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   STRETCH,mate: Why neither: /etc/profile nor /etc/environment is parsed for gui login? (https://www.linuxquestions.org/questions/debian-26/stretch-mate-why-neither-etc-profile-nor-etc-environment-is-parsed-for-gui-login-4175553390/)

ardabro 09-13-2015 03:29 PM

STRETCH,mate: Why neither: /etc/profile nor /etc/environment is parsed for gui login?
 
Hi all
I realized that when I log into graphical session none of aforementioned files are processed.
On the other side, both of them are processed when I log into text terminal.
Why is it so? How to set system-wide environment for any kind of session?
regards

frankbell 09-14-2015 06:31 PM

They aren't needed until a terminal environment is invoked. My understanding it that they should get parsed when you open a terminal emulator in your GUI environment (if I'm wrong, I'm sure someone will correct me.)

ardabro 09-15-2015 02:50 AM

Quote:

Originally Posted by frankbell (Post 5420417)
They aren't needed until a terminal environment is invoked. My understanding it that they should get parsed when you open a terminal emulator in your GUI environment (if I'm wrong, I'm sure someone will correct me.)

Nope.
None of env variables defined in these files appear in gui termial :(

luvr 10-07-2015 04:03 PM

Quote:

Originally Posted by ardabro (Post 5420523)
Nope.
None of env variables defined in these files appear in gui termial :(

Perhaps the GUI terminal is not run as a "login shell"? I have no idea how MATE handles this, but under XFCE, it's an option under the "Preferences" menu item.

ardabro 10-07-2015 11:52 PM

Quote:

Originally Posted by luvr (Post 5431423)
Perhaps the GUI terminal is not run as a "login shell"? I have no idea how MATE handles this, but under XFCE, it's an option under the "Preferences" menu item.

Bingo! There is a termial option: "Run command as login shell". When set, the /etc/environment file is parsed.
Thanks a lot!


All times are GMT -5. The time now is 10:12 PM.