Hi All<br><br>I currently use DvcsJob from kdevplatform when invoking commands in the perforce plugin (<a href="http://gitorious.org/perforce-plugin">http://gitorious.org/perforce-plugin</a>). 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.<br>
<br>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. <br>
<br>Regards<br><br>Morten<br>