1
0
Fork 0

Ignore -psn_ argument if launched as a GUI app on Mac.

This commit is contained in:
James Turner 2010-11-22 23:28:12 +00:00
parent a39fa6ca1e
commit 4a25fe3adc

View file

@ -1552,6 +1552,10 @@ parse_option (const string& arg)
SG_LOG( SG_GENERAL, SG_ALERT, "Bad property assignment: " << arg );
return FG_OPTIONS_ERROR;
}
} else if ( arg.find("-psn_") == 0) {
// on Mac, when launched from the GUI, we are passed the ProcessSerialNumber
// as an argument (and no others). Silently ignore the argument here.
return FG_OPTIONS_OK;
} else if ( arg.find( "--" ) == 0 ) {
size_t pos = arg.find( '=' );
string arg_name, arg_value;