Skip to content
Snippets Groups Projects
Commit c0c5ffc2 authored by Ruben Rodriguez's avatar Ruben Rodriguez
Browse files

mate-session-manager: improve compositor selector

parent 1d282a72
No related branches found
No related tags found
No related merge requests found
......@@ -4,8 +4,15 @@ WINDOW_MANAGER=xterm
[ -f /usr/bin/marco ] && WINDOW_MANAGER=marco
[ -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
WINDOW_MANAGER=marco-xrender
# Check for hardware acceleration
if glxinfo -B | grep "OpenGL renderer string" | grep -qv llvmpipe ; then
WINDOW_MANAGER=marco
# Use marco-glx (picom) on non-intel gpu, if available
if glxinfo -B | grep -qiv vendor.*intel; then
if [ -f /usr/bin/picom ] && [ -f /usr/bin/marco-glx ] ; then
WINDOW_MANAGER=marco-glx
fi
fi
fi
gsettings set org.mate.session.required-components windowmanager $WINDOW_MANAGER
......
......@@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
VERSION=6
VERSION=7
. ./config
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment