Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Colorfgbg
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
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1741

PostPosted: Thu Jul 12, 2012 2:22 pm    Post subject: Colorfgbg Reply with quote

When I su in X (either with or without the login option), I am losing the environment variable COLORFGBG, which is causing problems in certain applications. My first question is "why is this happening?" (I am guessing that I am missing something basic here), and my second question is "does some way exist to keep this variable whenever I become root?" (yes, I could just set it manually each time, but takes away the fun of learning something new :) ).
Back to top
View user's profile Send private message
ferreirafm
Guru
Guru


Joined: 28 Jul 2005
Posts: 487
Location: Sao Paulo, Brazil

PostPosted: Thu Jul 12, 2012 3:28 pm    Post subject: Reply with quote

Hi curmudgeon,
I have never experienced what you have described. However, why not use the global profile to set it?
G'Luck
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1741

PostPosted: Fri Jul 13, 2012 12:38 am    Post subject: Reply with quote

ferreirafm wrote:
I have never experienced what you have described. However, why not use the global profile to set it?


It's easy to set a static value that way, but the variable depends on the terminal colors, which aren't constant for my uses. I want some way of just carrying over whatever I have set at the time when I become root.
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Fri Jul 13, 2012 9:22 am    Post subject: Reply with quote

Does the -p option to su preserve this environment variable?
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
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