Skip to content

Commit

Permalink
Use software rendering for Gio apps by default
Browse files Browse the repository at this point in the history
Hardware acceleration can be enabled by setting the qvm-service
gpu-accel to a truthy value.

Fixes: QubesOS/qubes-issues#9268
For: QubesOS/qubes-core-admin-client#294
  • Loading branch information
ben-grande committed Jun 21, 2024
1 parent 66161c3 commit 8ba08ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 5 additions & 2 deletions appvm-scripts/etc/profile.d/qubes-gui.csh
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions appvm-scripts/etc/profile.d/qubes-gui.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8ba08ec

Please sign in to comment.