mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Linux: Fix regression that broke using calibre on some VNC servers
This commit is contained in:
parent
589a67f916
commit
28965f45ae
@ -112,9 +112,10 @@ def init_qt(args):
|
|||||||
app = Application(args, override_program_name=override)
|
app = Application(args, override_program_name=override)
|
||||||
app.file_event_hook = EventAccumulator()
|
app.file_event_hook = EventAccumulator()
|
||||||
try:
|
try:
|
||||||
from PyQt5.Qt import QX11Info
|
is_x11 = app.platformName() == 'xcb'
|
||||||
is_x11 = QX11Info.isPlatformX11()
|
|
||||||
except Exception:
|
except Exception:
|
||||||
|
import traceback
|
||||||
|
traceback.print_exc()
|
||||||
is_x11 = False
|
is_x11 = False
|
||||||
# Ancient broken VNC servers cannot handle icons of size greater than 256
|
# Ancient broken VNC servers cannot handle icons of size greater than 256
|
||||||
# https://www.mobileread.com/forums/showthread.php?t=278447
|
# https://www.mobileread.com/forums/showthread.php?t=278447
|
||||||
|
Loading…
x
Reference in New Issue
Block a user