mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
7c5bfff513
commit
f231ab0943
1 changed files with 6 additions and 0 deletions
6
main.c
6
main.c
|
@ -167,6 +167,12 @@ static void parse_argument(const char *arg)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* fallthrough */
|
/* fallthrough */
|
||||||
|
case 'p':
|
||||||
|
/* ignore process serial number argument when run as native macosx app */
|
||||||
|
if (strncmp(arg, "-psn_", 5) == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
/* fallthrough */
|
||||||
default:
|
default:
|
||||||
fprintf(stderr, "Bad argument '%s'\n", arg);
|
fprintf(stderr, "Bad argument '%s'\n", arg);
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue