Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why are those environment variables set in X?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Pyrates
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2004
Posts: 97

PostPosted: Fri Jul 19, 2013 7:54 pm    Post subject: Why are those environment variables set in X? Reply with quote

Hey there!

When I open an xterm, there are several environment variables set that relate to opencascade (such as CASROOT). Now, if I only log in at a console prompt, I don't have those set. I guess they somehow come from X, or maybe my window manager?

I can't for my life figure out how those variables came to be defined, since they are not set in the bash startup files. What else is there? I did uninstall opencascade and relog into my window manager, and then the variables weren't set, so the package opencascade somehow must manage to automatically do this for me. Can someone shed a light on this for me? I imagine the answer is along the lines like "packages can install files in directory Y, which are then read by process B and passed to the environment when X starts" or so... I tried grepping files for my life, but nothing turned up...

Thanks for any pointers!
_________________
" ... and the Vogon will do things to you that you wish you'd never been born, or, if you're a clearer minded thinker, that the Vogon had never been born."
Back to top
View user's profile Send private message
Pyrates
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2004
Posts: 97

PostPosted: Sat Jul 20, 2013 10:46 am    Post subject: Reply with quote

Well, duh, should have had some sleep before asking...

Packages can install files into /etc/env.d to set environment variables, which are probably sourced for login shells. So does opencascade.

My confusion came from the fact that I deinstalled opencascade, but left some xterms open, where these variables still were set, environtments don't just autoupdate. Loging into other shells _after_ deinstallation of course did not set those variables.
_________________
" ... and the Vogon will do things to you that you wish you'd never been born, or, if you're a clearer minded thinker, that the Vogon had never been born."
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum