[Tutor] Re: trouble with pygtk and different users
Lee Harr
missive at hotmail.com
Sat Dec 20 19:07:59 EST 2003
>The label, instead of saying which user owns the
>process, says which user is actually logged in. This
>is very confusing behavior. I think it's Linux's
>fault, but I still don't know how to fix it.
>
label = gtk.Label('Choose a program to run as %s' % os.getenv('USERNAME'))
On my system (FreeBSD) there is a USER env variable, but no USERNAME
Make sure you do su - and not just su
Are you allowing other users to connect to your x-server (xhost +)
Be very careful any time you run things as root (especially running
things automatically from a script)
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
More information about the Tutor
mailing list