From a15a005648d5a5a54087f84b36c4929aee3f7438 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 --- 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 f634eed1dd..21072329a8 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 @@ -69,6 +70,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()