diff --git a/appvm-scripts/etc/profile.d/qubes-gui.csh b/appvm-scripts/etc/profile.d/qubes-gui.csh index aeb1abdd..2e88cc95 100644 --- a/appvm-scripts/etc/profile.d/qubes-gui.csh +++ b/appvm-scripts/etc/profile.d/qubes-gui.csh @@ -1,2 +1,5 @@ -setenv DISPLAY ":0" -setenv _JAVA_AWT_WM_NONREPARENTING "1" +setenv DISPLAY ":0" _JAVA_AWT_WM_NONREPARENTING "1" +if ( -f /var/run/qubes-service/software-rendering ) + setenv GSK_RENDERER "cairo" GDK_DEBUG "gl-disable vulkan-disable" \ + 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