* [gentoo-user] environmental variables ?
@ 2006-07-02 7:09 Dave S
2006-07-02 11:40 ` Bo Ørsted Andresen
0 siblings, 1 reply; 5+ messages in thread
From: Dave S @ 2006-07-02 7:09 UTC (permalink / raw
To: Gentoo list
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] environmental variables ?
2006-07-02 7:09 [gentoo-user] environmental variables ? Dave S
@ 2006-07-02 11:40 ` Bo Ørsted Andresen
2006-07-02 12:50 ` Dave S
0 siblings, 1 reply; 5+ messages in thread
From: Bo Ørsted Andresen @ 2006-07-02 11:40 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 224 bytes --]
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
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] environmental variables ?
2006-07-02 11:40 ` Bo Ørsted Andresen
@ 2006-07-02 12:50 ` Dave S
2006-07-02 23:46 ` Iain Buchanan
0 siblings, 1 reply; 5+ messages in thread
From: Dave S @ 2006-07-02 12:50 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] environmental variables ?
2006-07-02 12:50 ` Dave S
@ 2006-07-02 23:46 ` Iain Buchanan
2006-07-03 17:16 ` Dave S
0 siblings, 1 reply; 5+ messages in thread
From: Iain Buchanan @ 2006-07-02 23:46 UTC (permalink / raw
To: gentoo-user
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:
Defaults env_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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] environmental variables ?
2006-07-02 23:46 ` Iain Buchanan
@ 2006-07-03 17:16 ` Dave S
0 siblings, 0 replies; 5+ messages in thread
From: Dave S @ 2006-07-03 17:16 UTC (permalink / raw
To: gentoo-user
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:
> Defaults env_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 ...
root@dave-comp:/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
root ALL=(ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
root@dave-comp:/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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-07-03 17:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-02 7:09 [gentoo-user] environmental variables ? Dave S
2006-07-02 11:40 ` Bo Ørsted Andresen
2006-07-02 12:50 ` Dave S
2006-07-02 23:46 ` Iain Buchanan
2006-07-03 17:16 ` Dave S
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox