apaku at gmx.de
Tue Dec 8 13:21:38 UTC 2009
On 08.12.09 14:03:20, David Nolden wrote:
> Am Dienstag 08 Dezember 2009 13:53:45 schrieb Andreas Pakulat:
> > On 08.12.09 13:04:56, David Nolden wrote:
> > > > Can't we make this a proper setter on the Core class? - please :)
> > >
> > > In future, I hope that the _primary_ way of setting the session will be
> > > the environment-variable, so that the duchain can use that information
> > > during initialization. Which means that, once I've found a way to spawn
> > > another _detached_ instance of kdevelop with a specific
> > > environment-variable set, we can remove the cmdline-option again
> > > completely.
> > That should work with KProcess and using startDetached instead of simply
> > start.
> The problem is that startDetached doesn't work with environment-variables (see
> its documentation), and I haven't found any other system call that could do
Ah, then just use QProcess::startDetached, which does support that. Its no
big difference for this anyway I think.
You will have good luck and overcome many hardships.
More information about the KDevelop-devel