Page 1 of 1

Configure working directory when running program

Posted: Mon Jun 27, 2016 1:32 pm
by milasudril
If I use build/run, the program always starts in the directory of the executable. Is it possible to change that. More precisely, I want working directory to be the same as the project root directory.

Re: Configure working directory when running program

Posted: Mon Jun 27, 2016 4:24 pm
by DavidGH
Hi,

Look in Project Settings > General tab. In the Execution section there's a Working Directory field. I think you'll find that's currently set to $(IntermediateDirectory), but you can change it to whatever you wish.

Regards,

David

Re: Configure working directory when running program

Posted: Mon Jun 27, 2016 8:43 pm
by milasudril
Nice. I switched from Code::Blocks because its corresponding function appears to be broken on Ubuntu 16.04. But I also got a Clang-based parser which is very nice.