[Tutor] Re: trouble with pygtk and different users

Daniel Ehrenberg littledanehren at yahoo.com
Sun Dec 21 14:13:09 EST 2003


Lee Harr wrote:
> su -
> and not
> su
> 
> (From the su man page ...
> 
>      -l      Simulate a full login.  The environment
> is discarded except for
>              HOME, SHELL, PATH, TERM, and USER. 
> HOME and SHELL are modified
>              as above.  USER is set to the target
> login.
> 
>      -       (no letter) The same as -l.
> )
> 
> 
> 
> It may be that (typical of linux/unix) the
> commandline version
> of su has more features available than the gui
> version.

gksu has the -l option (although not the - option),
but for some reason, it causes an error in importing
gtk (su does the same thing). Maybe I'll just
hard-code it to say that it's root.
> 
> I also liked the suggestion to use
> os.system('command &')
> and see if that makes a difference...

Thanks, that fixes it.

Daniel Ehrenberg

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/



More information about the Tutor mailing list