mate-tweak: improve test for 3D acceleration
This commit is contained in:
parent
3c5aa3fa25
commit
b3bf2f2e8a
1 changed files with 7 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue