X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Funix%2Fmain.cpp;h=698ec69ad514ee4d62d20b14ed9a9ec31ae6ff53;hp=601ddb6f998ee0ac188f0113e5687e78a56fc018;hb=caa878f5426d5d1dbcbe6c3b78656c3618411e7b;hpb=b2333b53a0434eb6a131000c0b9bf06e4f603bd6 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