mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 08:23:10 +02: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
1 changed files with 6 additions and 0 deletions
|
|
@ -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…
Reference in a new issue