From: Henrik Brautaset Aronsen Date: Sun, 30 Oct 2011 19:56:28 +0000 (+0100) Subject: Ignore process serial number argument when run as native MacOSX app X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=f231ab094351496017288ac35c64613ca0708744;p=ext%2Fsubsurface.git Ignore process serial number argument when run as native MacOSX app The subsurface binary is invoked with a -psn_x_xxxxxx argument when started from a native MacOSX app bundle. Signed-Off-By: Henrik Brautaset Aronsen --- diff --git a/main.c b/main.c index f34e3ae..5fed4cd 100644 --- a/main.c +++ b/main.c @@ -167,6 +167,12 @@ static void parse_argument(const char *arg) return; } /* fallthrough */ + case 'p': + /* ignore process serial number argument when run as native macosx app */ + if (strncmp(arg, "-psn_", 5) == 0) { + return; + } + /* fallthrough */ default: fprintf(stderr, "Bad argument '%s'\n", arg); exit(1);