On Tue, 2004-04-20 at 16:57, Jon Nelson wrote:
> On Tue, 20 Apr 2004, nf wrote:
>
> > Hi!
> >
> > Can you please help me with the following problem?
> > (i have already posted this question on comp.lang.python, but nobody
> > wanted to help me.)
> >
> > My application calls
> >
> > (rval, outp) = commands.getstatusoutput("...")
> >
> > inside a pygtk timer.
> >
> > when i start the application from a terminal window, everything works.
> > when i use GNOME/"Run application" or a desktop launcher, i get
> > errorcode 35584 for rval.
> >
> > i tried the thing with os.popen also - same problem.
>
> Try to find out what stdin/stdout/stderr look like for the app under
> both conditions.
thanks!
it was a lot simpler than i thought. the C command-line app which i call
via popen crashed (segfault) because the getlogin() function returned a
NULL pointer instead of the current username when my app was started
directly from the desktop.
norbert
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/