From: Mikko Rasa Date: Fri, 4 Oct 2013 21:44:41 +0000 (+0300) Subject: OS X tweaks X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=caa878f5426d5d1dbcbe6c3b78656c3618411e7b;p=libs%2Fcore.git OS X tweaks --- diff --git a/source/core/unix/main.cpp b/source/core/unix/main.cpp index 601ddb6..698ec69 100644 --- a/source/core/unix/main.cpp +++ b/source/core/unix/main.cpp @@ -2,5 +2,23 @@ int main(int argc, char **argv) { - return Msp::Application::run(argc, argv); + void *data = 0; + +#ifdef __APPLE__ + /* Applications launched from Finder get a special argument, which would + interfere with GetOpt. Remove it from argv but pass it as data so it can + be used to determine how the application was launhed. */ + int j = 0; + for(int i=0; i