mate-tweak: improve test for 3D acceleration

This commit is contained in:
Ruben Rodriguez 2022-12-04 16:36:08 -05:00
parent 3c5aa3fa25
commit b3bf2f2e8a

View file

@ -18,7 +18,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# #
VERSION=11 VERSION=12
. ./config . ./config
@ -51,8 +51,12 @@ WINDOW_MANAGER=xterm
[ -f /usr/bin/marco ] && WINDOW_MANAGER=marco [ -f /usr/bin/marco ] && WINDOW_MANAGER=marco
[ -f /usr/bin/marco-no-composite ] && WINDOW_MANAGER=marco-no-composite [ -f /usr/bin/marco-no-composite ] && WINDOW_MANAGER=marco-no-composite
if glxinfo | grep -q Accelerated.*yes && [ -f /usr/bin/picom ] && [ -f /usr/bin/marco-xrender ] ; then if glxinfo -B | grep "OpenGL renderer string" | grep -qv llvmpipe ; then
WINDOW_MANAGER=marco-xrender if [ -f /usr/bin/picom ] && [ -f /usr/bin/marco-xrender ] ; then
WINDOW_MANAGER=marco-xrender
else
WINDOW_MANAGER=marco
fi
fi fi
gsettings set org.mate.session.required-components windowmanager \$WINDOW_MANAGER gsettings set org.mate.session.required-components windowmanager \$WINDOW_MANAGER