summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Henrik Brautaset Aronsen <subsurface@henrik.synth.no>2011-10-30 20:56:28 +0100
committerGravatar Henrik Brautaset Aronsen <hba@conduct.no>2011-10-31 09:49:04 +0100
commitf231ab094351496017288ac35c64613ca0708744 (patch)
tree5d62bb39140b22c2d3290b74a2d87595c7669a1a /main.c
parent7c5bfff5138382c134e886689633a6fdb9f579a4 (diff)
downloadsubsurface-f231ab094351496017288ac35c64613ca0708744.tar.gz
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 <subsurface@henrik.synth.no>
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.c b/main.c
index f34e3ae51..5fed4cd6e 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);