OS X: Fix background jobs stealing input focus if they require the use of hidden browser

This commit is contained in:
Kovid Goyal 2014-08-24 18:28:25 +05:30
parent 391f7f5d25
commit 1d92987780

View File

@ -598,7 +598,7 @@ class Py2App(object):
continue continue
if x == 'Info.plist': if x == 'Info.plist':
plist = plistlib.readPlist(join(self.contents_dir, x)) plist = plistlib.readPlist(join(self.contents_dir, x))
plist['LSUIElement'] = '1' plist['LSBackgroundOnly'] = '1'
plist['CFBundleIdentifier'] = 'com.calibre-ebook.console' plist['CFBundleIdentifier'] = 'com.calibre-ebook.console'
plist.pop('CFBundleDocumentTypes') plist.pop('CFBundleDocumentTypes')
plistlib.writePlist(plist, join(cc_dir, x)) plistlib.writePlist(plist, join(cc_dir, x))