Re: [gentoo-user] environmental variables ?

2006-07-03 Thread Dave S
On Monday 03 July 2006 00:46, Iain Buchanan wrote:
 On Sun, 2006-07-02 at 13:50 +0100, Dave S wrote:
  On Sunday 02 July 2006 12:40, Bo Ørsted Andresen wrote:
   On Sunday 02 July 2006 09:09, Dave S wrote:
 HOME = /root
---
   
 HOME = /home/vanda
  
   This is only a theory but could it be that one reads config files in
   /root and the other in /home/vanda?
 
  The only related config I can find is for /etc/gksu.conf and thats not
  user dependent. I cant find any config relevent in /root or /home/vanda

 you'll probably find its a gnome (or kde) theme that is causing the
 issue, and the gnome (or kde) themes are stored in $HOME.  Since you
 usually don't log in graphically as root (which is usually good) you
 don't have theme folders set up in root's home...  am I making sense?!

You sure are :)


 try running `visudo` and commenting out the line:
 Defaultsenv_reset

 I don't know if gksudo uses this file, but if it does, your problem
 should go away...  If it does go away, then uncomment the line and do
 something better like:

 Defaults:yourname env_keep-=TERMCAP
Unfortunately my /etc/gksudo is pretty sparse - it consists of ...

[EMAIL PROTECTED]:/etc# cat sudoers
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults

Defaults!lecture,tty_tickets,!fqdn

# User privilege specification
rootALL=(ALL) ALL

# Members of the admin group may gain root privileges
%admin  ALL=(ALL) ALL
[EMAIL PROTECTED]:/etc#



 HTH,
 --
 Iain Buchanan iaindb at netspace dot net dot au

 It's not reality that's important, but how you perceive things.

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] environmental variables ?

2006-07-02 Thread Dave S
I throw myself on your mercy, this is for a kubuntu install not a gentoo 
install - but you guys are the most technical bunch I know :)

I start an app with 'gksudo simple-backup-config', (a gtk backup 
utility 'sbackup') and all is well, the GUI it is rendered perfectly.

I upgrade my system.

I start the app with 'gksudo simple-backup-config', YUK it looks like someone 
chewed it, the graphics are so primitive, white blocks around the GUI radio 
buttons, the tabs are separated and look like loose teeth, the buttons have 
lost their border and are just icons.

Experimenting I found that 'gksudo -k simple-backup-config' restored it to its 
former beauty, as did straight 'sudo simple-backup-config'.

Ahh I thought - environmental variables so I dug out a script to dump all 
environmental variables, did a diff between gksudo and gksudo -k and got ...

 DESKTOP_STARTUP_ID = gksudo/|home|vanda|
test/27282-0-vanda-comp_TIME771509819
---
 DESKTOP_STARTUP_ID = gksudo/|home|vanda|
test/27292-0-vanda-comp_TIME771642528
13c13
 HOME = /root
---
 HOME = /home/vanda
38c38
 XAUTHORITY = /tmp/libgksu1.2-AbpNh8/.Xauthority
---
 XAUTHORITY = /tmp/libgksu1.2-wNoSTR/.Xauthority

Not much change there. OK I am stumped. what else changes between gksudo and 
gksudo -k to affect GUI rendering ?  I know its no big deal but I would like 
to know. :)

Thanks in advance

Dave
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] environmental variables ?

2006-07-02 Thread Bo Ørsted Andresen
On Sunday 02 July 2006 09:09, Dave S wrote:
  HOME = /root
 ---
  HOME = /home/vanda

This is only a theory but could it be that one reads config files in /root and 
the other in /home/vanda?

-- 
Bo Andresen


pgpWaUWUqSXNt.pgp
Description: PGP signature


Re: [gentoo-user] environmental variables ?

2006-07-02 Thread Dave S
On Sunday 02 July 2006 12:40, Bo Ørsted Andresen wrote:
 On Sunday 02 July 2006 09:09, Dave S wrote:
   HOME = /root
  ---
 
   HOME = /home/vanda

 This is only a theory but could it be that one reads config files in /root
 and the other in /home/vanda?

The only related config I can find is for /etc/gksu.conf and thats not user 
dependent. I cant find any config relevent in /root or /home/vanda

Its a bit of a teaser this :)

Dave 

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] environmental variables ?

2006-07-02 Thread Iain Buchanan
On Sun, 2006-07-02 at 13:50 +0100, Dave S wrote:
 On Sunday 02 July 2006 12:40, Bo Ørsted Andresen wrote:
  On Sunday 02 July 2006 09:09, Dave S wrote:
HOME = /root
   ---
  
HOME = /home/vanda
 
  This is only a theory but could it be that one reads config files in /root
  and the other in /home/vanda?
 
 The only related config I can find is for /etc/gksu.conf and thats not user 
 dependent. I cant find any config relevent in /root or /home/vanda

you'll probably find its a gnome (or kde) theme that is causing the
issue, and the gnome (or kde) themes are stored in $HOME.  Since you
usually don't log in graphically as root (which is usually good) you
don't have theme folders set up in root's home...  am I making sense?!

try running `visudo` and commenting out the line:
Defaultsenv_reset

I don't know if gksudo uses this file, but if it does, your problem
should go away...  If it does go away, then uncomment the line and do
something better like:

Defaults:yourname env_keep-=TERMCAP

HTH,
-- 
Iain Buchanan iaindb at netspace dot net dot au

It's not reality that's important, but how you perceive things.

-- 
gentoo-user@gentoo.org mailing list