From 2780372bc3fc53cf989c69d6e953a6c1e5ffa3db Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 29 Aug 2013 10:06:34 +0200 Subject: [PATCH] Support -psn as hidden program option on MacOSX --- src/App/Application.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/App/Application.cpp b/src/App/Application.cpp index f1b526f56..db242cddb 100644 --- a/src/App/Application.cpp +++ b/src/App/Application.cpp @@ -1385,6 +1385,10 @@ namespace boost { namespace filesystem { pair customSyntax(const string& s) { +#if defined(FC_OS_MACOSX) + if (s.find("-psn_") == 0) + return make_pair(string("psn"), s.substr(5)); +#endif if (s.find("-display") == 0) return make_pair(string("display"), string("null")); else if (s.find("-style") == 0) @@ -1493,6 +1497,9 @@ void Application::ParseOptions(int ac, char ** av) ("visual", boost::program_options::value< string >(), "set the X-Window to color scema") ("ncols", boost::program_options::value< int >(), "set the X-Window to color scema") ("cmap", "set the X-Window to color scema") +#if defined(FC_OS_MACOSX) + ("psn", boost::program_options::value< string >(), "process serial number") +#endif ; // Ignored options, will be savely ignored. Mostly uses by underlaying libs.