diff options
author | Henrik Brautaset Aronsen <subsurface@henrik.synth.no> | 2011-10-30 20:56:28 +0100 |
---|---|---|
committer | Henrik Brautaset Aronsen <hba@conduct.no> | 2011-10-31 09:49:04 +0100 |
commit | f231ab094351496017288ac35c64613ca0708744 (patch) | |
tree | 5d62bb39140b22c2d3290b74a2d87595c7669a1a /main.c | |
parent | 7c5bfff5138382c134e886689633a6fdb9f579a4 (diff) | |
download | subsurface-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |