How to launch a mac application without a terminal window.

Posted by KPexEA on Stack Overflow See other posts from Stack Overflow or by KPexEA
Published on 2010-03-24T01:36:20Z Indexed on 2010/03/24 1:43 UTC
Read the original article Hit count: 216

Filed under:
|
|
|
|

I've written an open-source c++ application and it works fine on Windows and Linux, I finally got a Mac Mini (with 10.5.8) so I've just been testing the Mac version.

My application works fine when running it from inside a terminal window and typing ./appname , but if instead I double click on it from the finder, then it opens a termnial window first and then runs my app but it doesn't seem to set the working directory to the correct location so my app dies.

How do I make my app so when it launches by being double clicked on it doesn't open a terminal window first and how can I have the current directory set to the apps location automatically?

© Stack Overflow or respective owner

Related posts about c++

Related posts about mac