From f231ab094351496017288ac35c64613ca0708744 Mon Sep 17 00:00:00 2001 From: Henrik Brautaset Aronsen Date: Sun, 30 Oct 2011 20:56:28 +0100 Subject: [PATCH] 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 --- main.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 2.45.2