Patch - don't set environment in DvcsJob to parent process' environment in start function

Andreas Pakulat apaku at gmx.de
Thu Dec 9 21:04:19 UTC 2010


On 09.12.10 21:56:01, Morten Volden wrote:
> Hi All
> 
> I currently use DvcsJob from kdevplatform when invoking commands in the
> perforce plugin (http://gitorious.org/perforce-plugin). The perforce client
> executable will read it's current working directory from the environment
> variable PWD. This variable is apperently is not what is set when calling
> QProcess::setWorkingDirectory in the DvcsJob constructor.
> 
> In DVcsJob::start function there is a call to QProcess::setEnvironment which
> sets the environment to that of the parent process (I am told that this is
> redundant since Kjob already sets it). My patch simply removes this line so
> that a client using DvcsJob can now set the environment of the job.

Not KJob does it, but KProcess - afaik. IMHO the patch looks fine the
existing code really makes no sense.

Andreas

-- 
You will be misunderstood by everyone.




More information about the KDevelop-devel mailing list