mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-29 14:14:27 +01:00
IGN:Improve X server detection
This commit is contained in:
parent
c01b8454f5
commit
1f349f330e
1 changed files with 1 additions and 1 deletions
|
|
@ -538,7 +538,7 @@ def __init__(self, args):
|
|||
|
||||
def is_ok_to_use_qt():
|
||||
global gui_thread
|
||||
if islinux and os.environ.get('DISPLAY', None) is None:
|
||||
if islinux and ':' in os.environ.get('DISPLAY', ''):
|
||||
return False
|
||||
if QApplication.instance() is None:
|
||||
QApplication([])
|
||||
|
|
|
|||
Loading…
Reference in a new issue