mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
3ddb7f1da3
commit
be8c222864
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user