How does Creator change the working directory?



  • In run settings, the user is given the opportunity to change the working directory of the program to be run.

    How does this happen?

    I ask because I'm going to have to start putting together some test scripts for multiple programs, where the output of prog1 is the input to prog2, etc. If I can somehow perform this magic in bash, it could add a lot of flexibility to my tests.

    Thanks.


  • Moderators

    No magic involved: Creator does a "cd /working/directory" before running the application.



  • Oh, OK...so then it invokes the program with a relative (or absolute) pathname? Makes sense. Thanks...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.