From 8bff156a682dbbff76aa49f8a682c5c4814aa5bf Mon Sep 17 00:00:00 2001 From: Eberhard Beilharz Date: Mon, 4 Nov 2024 17:44:22 +0100 Subject: [PATCH] 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 --- linux/keyman-config/km-config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/linux/keyman-config/km-config b/linux/keyman-config/km-config index 641fb96470..e099c59eda 100755 --- a/linux/keyman-config/km-config +++ b/linux/keyman-config/km-config @@ -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()