[PyQt] QProcess terminates if a daemon is executed

Detlev Offenbach detlev at die-offenbachs.de
Sun Oct 26 14:22:08 GMT 2008


On Sonntag, 26. Oktober 2008, Fatih Arslan wrote:
> Hi,
>
> I'm developing a new tray-application which will be used for the
> Web-service "Dropbox". They have a daemon who is responsible for the
> syncing of files.
> This daemon is located in ~/.dropbox-dist/dropboxd. Now if i start
> this process like this:
>
> self.process = QProcess()
> self.dropBoxDaemon = os.path.join(os.path.expanduser("~"),
> ".dropbox-dist/dropboxd")
> self.process.start(self.dropBoxDaemon)

Have you tried QProcess.startDetached(...)?

>
> My app terminates and i get the error "Command terminated". Where am i
> doing false ? I think because it's a daemon it causes it to terminate.
> I've searched for examples how to start a "daemon" process, but
> without any results.
>
> Regards



-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the PyQt mailing list