mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'Fix_Headless_Qt_6.9_FreeBSD' of https://github.com/madpilot78/calibre
This commit is contained in:
commit
9e9720c9b4
@ -1619,6 +1619,8 @@ def ensure_app(headless=True):
|
||||
has_headless = ismacos or islinux or isbsd
|
||||
if headless and has_headless:
|
||||
args += ['-platformpluginpath', plugins_loc, '-platform', os.environ.get('CALIBRE_HEADLESS_PLATFORM', 'headless')]
|
||||
if isbsd:
|
||||
os.environ['QTWEBENGINE_CHROMIUM_FLAGS'] = '--disable-gpu'
|
||||
if ismacos:
|
||||
os.environ['QT_MAC_DISABLE_FOREGROUND_APPLICATION_TRANSFORM'] = '1'
|
||||
if headless and iswindows:
|
||||
|
Loading…
x
Reference in New Issue
Block a user