I wrote an open source C ++ application and it works fine on Windows and Linux, I finally got the Mac Mini (from 10.5.8), so I just tested the Mac version.
My application works fine when it starts from the terminal window and types ./appname , but if instead I double-click on it from the search device, it will first open the termnial window and then launch my application, but it does not seem to set the working directory to the right place, so my application is dying.
How can I configure the application when it starts when I double-click on it, the terminal window does not open first, and how can I automatically set the current directory to the application location?
c ++ user-interface terminal macos
KpexEA
source share