How to chdir?
apaku at gmx.de
Wed Jun 18 19:41:22 UTC 2008
On 18.06.08 22:27:50, Evgeniy Ivanov wrote:
> I use KJob based class (VcsJob) and have to chdir. Git wants me to go to
> his repo before executing commands. Now I use QDir:setCurrentDir (and
> after I did all things i change back it to the previous value). Any
> suggestions? It will be painful to switch to the QProcess...
a) How are you calling git right now? (Or even better: where can I get
your code to have a look?)
b) Why is it painful to use QProcess?
You can't do this without using QProcess or KProcess (the latter is
possibly a bit easier to use). And you also don't need to use it in
And KJob/VcsJob themselves are just empty containers, they just provide
a job-like API on top of whatever you put into your implementation of
the start() method.
Your nature demands love and your happiness depends on it.
More information about the KDevelop-devel