Hi guys
Well I am playing around with the QProcess and I am having this small (big) problem.
When I run the application my current directory is this one
/home/diego/Proyectos_Personales/Ejemplos/Using_QProcess-build-desktop
And I need to make an operation in this directory
/home/diego/Proyectos_Personales/Ejemplos/Using_QProcess-build-desktop/randy-1.0
So I do this
process->setWorkingDirectory(path);
QString x
=process
->workingDirectory
();
//This returns me the directory I want :) //But when I do a pwd
process->execute("pwd");//It return me the original directory :(
process->execute("dh_make -e diegoturcios@ubuntu.com");
process->write("s");//
process->write("\n");
process->setWorkingDirectory(path);
QString x=process->workingDirectory();//This returns me the directory I want :)
//But when I do a pwd
process->execute("pwd");//It return me the original directory :(
process->execute("dh_make -e diegoturcios@ubuntu.com");
process->write("s");//
process->write("\n");
To copy to clipboard, switch view to plain text mode
So I don't know how to solved this problem.
Someone can give me an idea?
Thanks
Bookmarks