From c76a73006439f054144cf70b054bf9727682b2d9 Mon Sep 17 00:00:00 2001 From: Ben Grande Date: Tue, 18 Jun 2024 11:16:58 +0200 Subject: [PATCH] Use software rendering for Gio apps by default Hardware acceleration can be enabled by setting the qvm-service gpu-accel to a truthy value. Fixes: https://github.com/QubesOS/qubes-issues/issues/9268 For: https://github.com/QubesOS/qubes-core-admin-client/pull/294 --- appvm-scripts/etc/profile.d/qubes-gui.csh | 5 +++++ appvm-scripts/etc/profile.d/qubes-gui.sh | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/appvm-scripts/etc/profile.d/qubes-gui.csh b/appvm-scripts/etc/profile.d/qubes-gui.csh index aeb1abdd..8cb5573a 100644 --- a/appvm-scripts/etc/profile.d/qubes-gui.csh +++ b/appvm-scripts/etc/profile.d/qubes-gui.csh @@ -1,2 +1,7 @@ setenv DISPLAY ":0" setenv _JAVA_AWT_WM_NONREPARENTING "1" +if ( -f /var/run/qubes-service/software-rendering ) + setenv GSK_RENDERER "cairo" + setenv GDK_DEBUG "gl-disable vulkan-disable" + setenv LIBGL_ALWAYS_SOFTWARE "1" +endif diff --git a/appvm-scripts/etc/profile.d/qubes-gui.sh b/appvm-scripts/etc/profile.d/qubes-gui.sh index 9e10d14a..522fe588 100644 --- a/appvm-scripts/etc/profile.d/qubes-gui.sh +++ b/appvm-scripts/etc/profile.d/qubes-gui.sh @@ -1 +1,5 @@ export DISPLAY=:0 _JAVA_AWT_WM_NONREPARENTING=1 +if test -f /var/run/qubes-service/software-rendering; then + export GSK_RENDERER="cairo" GDK_DEBUG="gl-disable vulkan-disable" \ + LIBGL_ALWAYS_SOFTWARE=1 +fi