]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Ignore process serial number argument when run as native MacOSX app
authorHenrik Brautaset Aronsen <subsurface@henrik.synth.no>
Sun, 30 Oct 2011 19:56:28 +0000 (20:56 +0100)
committerHenrik Brautaset Aronsen <hba@conduct.no>
Mon, 31 Oct 2011 08:49:04 +0000 (09:49 +0100)
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>
main.c

diff --git a/main.c b/main.c
index f34e3ae51b3f3fa952bf69cb6373b1eefef788ca..5fed4cd6ed0e5b74b140e7bf8a8971eab9f24c45 100644 (file)
--- 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);