LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-13-2015, 03:29 PM   #1
ardabro
Member
 
Registered: May 2015
Location: Katowice, Poland
Distribution: Debian, Ubuntu
Posts: 37

Rep: Reputation: Disabled
Question 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
 
Old 09-14-2015, 06:31 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,345
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
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.)
 
Old 09-15-2015, 02:50 AM   #3
ardabro
Member
 
Registered: May 2015
Location: Katowice, Poland
Distribution: Debian, Ubuntu
Posts: 37

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
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
 
Old 10-07-2015, 04:03 PM   #4
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Xubuntu
Posts: 459
Blog Entries: 2

Rep: Reputation: 194Reputation: 194
Quote:
Originally Posted by ardabro View Post
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.
 
1 members found this post helpful.
Old 10-07-2015, 11:52 PM   #5
ardabro
Member
 
Registered: May 2015
Location: Katowice, Poland
Distribution: Debian, Ubuntu
Posts: 37

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by luvr View Post
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!
 
  


Reply

Tags
environment, profile



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
libqt4-gui missing in stretch palaiseau Debian 7 11-10-2015 05:48 PM
LXer: MATE 1.10 Uploaded in Debian Unstable, Ubuntu Stretch, and Ubuntu 15.10 Repos LXer Syndicated Linux News 0 09-10-2015 08:21 PM
Which desktop environment do I have: Gnome 2 or MATE ? punchy71 Linux - Newbie 1 04-27-2015 08:38 AM
MATE Desktop Environment packages for Slackware gapan Slackware 102 08-29-2013 10:07 AM
MATE Desktop Environment 1.4.0 herakles_14 Ubuntu 19 09-30-2012 11:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration