mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
OS X: Fix background jobs stealing input focus if they require the use of hidden browser
This commit is contained in:
parent
391f7f5d25
commit
1d92987780
@ -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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user