Code::Blocks Forums

User forums => Help => Topic started by: lzguo99 on May 02, 2015, 11:24:42 am

Title: In codeblocks 13.12 on macosx, program can not run in the project dir
Post by: lzguo99 on May 02, 2015, 11:24:42 am
osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script "$SCRIPT"' -e 'end tell'

What's this mean?

My program is a small c code and it will write a *.txt result file, but actually it seems that program run at my home dir and create result there. I expect it should run in the project dir. How can I fix the problem?

The problem is on macosx, there is no problem on ubuntu. Thanks.
Title: Re: In codeblocks 13.12 on macosx, program can not run in the project dir
Post by: oBFusCATed on May 02, 2015, 06:44:29 pm
This piece of code starts the terminal application on OSX, so you can see the output of your console application.

CB 13.12 is known to be broken on newer OSX releases when starting the terminal application.
Probably some of the nightlies have fixes for this problem, but there is no one building CB on OSX, so we don't know if this is really the case.