Fix regression in 2.15 that broke calibre on OS X 10.7. Fixes #1407102 [Calibre 2.15 doesn't work in my mac](https://bugs.launchpad.net/calibre/+bug/1407102)

This commit is contained in:
Kovid Goyal 2015-01-02 22:54:33 +05:30
parent 3ddb7f1da3
commit be8c222864

View File

@ -192,6 +192,12 @@ def main():
except:
pass # Failure to log to Console.app is not critical
# Needed on OS X 10.7, which passes -psn_... as a command line arg when
# starting via launch services
for arg in tuple(sys.argv[1:]):
if arg.startswith('-psn_'):
sys.argv.remove(arg)
base = sys.resourcepath
sys.frozen = 'macosx_app'
sys.new_app_bundle = True