From e33bf7254369b81537e4674171df270bec0cfed5 Mon Sep 17 00:00:00 2001 From: Martin Zibricky Date: Wed, 27 Jun 2012 23:32:43 +0200 Subject: [PATCH] fixed 1018442 (-psn_XXX argument passed to OSX build) --- openlp.pyw | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openlp.pyw b/openlp.pyw index 3e5d18f16..c67d54e41 100755 --- a/openlp.pyw +++ b/openlp.pyw @@ -27,6 +27,7 @@ # Temple Place, Suite 330, Boston, MA 02111-1307 USA # ############################################################################### +import sys from openlp.core import main @@ -34,4 +35,10 @@ if __name__ == u'__main__': """ Instantiate and run the application. """ + # Mac OS X passes arguments like '-psn_XXXX' to gui application. + # This argument is process serial number. However, this causes + # conflict with other OpenLP arguments. Since we do not use this + # argument we can delete it to avoid any potential conflicts. + if sys.platform.startswith('darwin'): + sys.argv = filter(lambda x: not x.startswith('-psn'), sys.argv) main()