mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-24 08:37:42 +00:00
fix(linux): set environment variable for rendering of downloads dialog
This works around a problem in webkit2gtk where the download dialog sometimes only renders a blank screen. Setting the environment variable seems to help, not only in the cases that the issue describes (with a NVidia graphics card), but also in my testing in a VM. Fixes: #12587 Cherry-pick-of: #12616
This commit is contained in:
parent
c119b8911a
commit
8bff156a68
1 changed files with 5 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
import argparse
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import gi
|
||||
|
||||
|
|
@ -66,6 +67,10 @@ if __name__ == '__main__':
|
|||
elif args.url:
|
||||
download_and_install_package(args.url)
|
||||
else:
|
||||
# Workaround for bug in webkit2gtk (#12587)
|
||||
if not 'WEBKIT_DISABLE_DMABUF_RENDERER' in os.environ:
|
||||
os.environ['WEBKIT_DISABLE_DMABUF_RENDERER'] = '1'
|
||||
|
||||
w = ViewInstalledWindow()
|
||||
try:
|
||||
w.run()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue