mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
IGN:Fix typo that was preventing EPUB Output from working in absence of X server
This commit is contained in:
parent
831ce503f4
commit
5e98eb1d29
@ -161,10 +161,8 @@ class EPUBOutput(OutputFormatPlugin):
|
||||
)
|
||||
split(self.oeb, self.opts)
|
||||
|
||||
|
||||
self.workaround_ade_quirks()
|
||||
self.workaround_webkit_quirks()
|
||||
|
||||
from calibre.ebooks.oeb.transforms.rescale import RescaleImages
|
||||
RescaleImages()(oeb, opts)
|
||||
self.insert_cover()
|
||||
@ -194,6 +192,7 @@ class EPUBOutput(OutputFormatPlugin):
|
||||
'''
|
||||
if self.opts.no_default_epub_cover:
|
||||
return None
|
||||
self.log('Generating default cover')
|
||||
try:
|
||||
from calibre.gui2 import images_rc, is_ok_to_use_qt # Needed for access to logo
|
||||
from PyQt4.Qt import QFile, QIODevice
|
||||
|
@ -538,7 +538,7 @@ class Application(QApplication):
|
||||
|
||||
def is_ok_to_use_qt():
|
||||
global gui_thread
|
||||
if islinux and ':' in os.environ.get('DISPLAY', ''):
|
||||
if islinux and ':' not in os.environ.get('DISPLAY', ''):
|
||||
return False
|
||||
if QApplication.instance() is None:
|
||||
QApplication([])
|
||||
|
Loading…
x
Reference in New Issue
Block a user