Skip to content

Commit

Permalink
Also set software rendering via the new $GDK_DISABLE variable
Browse files Browse the repository at this point in the history
GTK 4.14.6+ (Fedora 41+) has moved 'GDK_DEBUG=foo-disable' to
'GDK_DISABLE=foo':

https://gitlab.gnome.org/GNOME/gtk/-/commit/cde094a0dfde3024fae18e0c0d36e7cf5f795dc6

New GTK versions print warnings for the old options:

    Unrecognized value "gl-disable". Try GDK_DEBUG=help
    Unrecognized value "vulkan-disable". Try GDK_DEBUG=help

(cherry picked from commit dcf6256)
  • Loading branch information
rustybird authored and marmarek committed Dec 27, 2024
1 parent 1993b85 commit 0a1507f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions appvm-scripts/etc/profile.d/qubes-gui.csh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ setenv DISPLAY ":0"
setenv _JAVA_AWT_WM_NONREPARENTING "1"
if ( -f /var/run/qubes-service/software-rendering )
setenv GSK_RENDERER "cairo"
setenv GDK_DISABLE "gl vulkan"
setenv GDK_DEBUG "gl-disable vulkan-disable"
setenv LIBGL_ALWAYS_SOFTWARE "1"
endif
4 changes: 3 additions & 1 deletion appvm-scripts/etc/profile.d/qubes-gui.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
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" \
export GSK_RENDERER="cairo" \
GDK_DISABLE="gl vulkan" \
GDK_DEBUG="gl-disable vulkan-disable" \
LIBGL_ALWAYS_SOFTWARE=1
fi

0 comments on commit 0a1507f

Please sign in to comment.