Re: QProcess::startDetached and bash stdout capture

2017-03-25 Thread David Faure
On samedi 25 mars 2017 22:19:22 CET Thiago Macieira wrote: > On sábado, 25 de março de 2017 09:03:28 PDT David Faure wrote: > > On samedi 25 mars 2017 16:50:37 CET Thiago Macieira wrote: > > > One problem is because the launched process inherits the pipes to stdout > > > and stderr > > > > Really,

Re: QProcess::startDetached and bash stdout capture

2017-03-25 Thread Thiago Macieira
On sábado, 25 de março de 2017 09:03:28 PDT David Faure wrote: > On samedi 25 mars 2017 16:50:37 CET Thiago Macieira wrote: > > One problem is because the launched process inherits the pipes to stdout > > and stderr > > Really, even with startDetached? I assumed that was more "detached" than > tha

Re: QProcess::startDetached and bash stdout capture

2017-03-25 Thread Thiago Macieira
On sábado, 25 de março de 2017 09:03:28 PDT David Faure wrote: > On samedi 25 mars 2017 16:50:37 CET Thiago Macieira wrote: > > One problem is because the launched process inherits the pipes to stdout > > and stderr > > Really, even with startDetached? I assumed that was more "detached" than > tha

Re: QProcess::startDetached and bash stdout capture

2017-03-25 Thread David Faure
On samedi 25 mars 2017 16:50:37 CET Thiago Macieira wrote: > One problem is because the launched process inherits the pipes to stdout and > stderr Really, even with startDetached? I assumed that was more "detached" than that ;) > but the shell sees the process group it launched exiting. I never

Re: QProcess::startDetached and bash stdout capture

2017-03-25 Thread Thiago Macieira
On sábado, 25 de março de 2017 08:50:37 PDT Thiago Macieira wrote: > One problem is because the launched process inherits the pipes to stdout and > stderr, but the shell sees the process group it launched exiting. It will > probably close the pipe. Normally, this process would exit soon with > SIGP

Re: QProcess::startDetached and bash stdout capture

2017-03-25 Thread Thiago Macieira
On sábado, 25 de março de 2017 08:07:37 PDT David Faure wrote: > So I have now separated this into two processes: > * kdialog, the parent process that exits as soon as things are set up > * kdialog_progress_helper, the child process that keeps running and answers > to the dbus calls. > > It almost

QProcess::startDetached and bash stdout capture

2017-03-25 Thread David Faure
I need help with a shell and child process issue. To show a progressbar with kdialog, the usage is like this: dbusRef=`kdialog --progressbar "Initialising" 6` qdbus $dbusRef Set org.kde.kdialog.ProgressDialog value 1 etc. i.e. kdialog outputs on stdout a dbus servicename + objectpath, and exits,