[Tutor] trouble with pygtk and different users

Daniel Ehrenberg littledanehren at yahoo.com
Sat Dec 20 12:45:37 EST 2003


In trying to learn PyGTK, I wrote a simple launcher
program to make it easier to run things as root. It is
attached. There's a label at the top that should say
that you should click on one of the following buttons
to run them as root (or whatever user it is run under,
the point is that you only have to type the password
once). Then there are buttons to get to various
programs and a quit button. It works some, but there
are some problems.

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.

When a program is launched from it, the GUI (of my
Python script) freezes. Nothing can be done from it
and if any other windows go over it, it is not
updated. This isn't because Python is waiting for the
program to finish; if I use PyShell to so
os.system('nautilus'), it launches nautilus and
returns 0, then there's the next command prompt.

Daniel Ehrenberg

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gtkstuff.py
Type: application/octet-stream
Size: 1934 bytes
Desc: gtkstuff.py
Url : http://mail.python.org/pipermail/tutor/attachments/20031220/36913300/gtkstuff.obj


More information about the Tutor mailing list