MATE Appearance Preferences get not set
Hello,
I was using LXQT bevor I changed to MATE.
LXQT had (has?) a funny bug. The Appearance Preferences got not set on system start, only if the Appearance Preferences program got run.
MATE 1.26 has now the same bug. My mouse cursors and icons get not set without running /usr/bin/mate-appearance-properties
Just running mate-appearance-properties is enough to set the correct settings.
So I reused my old LXQT bug workaround for MATE:
/usr/local/bin/configmyx11.sh
#!/bin/bash
#
#
# Needs the Arch/Artix package 'xorg-xwininfo' (Debian: x11-utils) for the X11 appearance check.
#
# Script should be put in /usr/local/bin/configmyx11.sh and run by the Desktop Autorun.
# Probably: ~/.config/autostart/configmyx11.desktop
# Bug in MATE: xcursors and xcursor size only set correctly after mate-appearance-properties is run.
/usr/bin/mate-appearance-properties &
LXQTCAPID=$!
LXQTACTIV=0
QTO=0
while [ $QTO -lt 33 ]; do # 10 sec. timeout
sleep 0.3 # Check every 300ms for appearance
LXQTACTIV=$(/usr/bin/xwininfo -name 'Appearance Preferences' 2>&1 | grep -scie 'Map State: IsViewable')
if [ $LXQTACTIV -gt 0 ]; then
kill $LXQTCAPID 2>&1 >/dev/null
break
fi
((QTO++))
done
And ~/.config/autostart/configmyx11.sh.desktop
[Desktop Entry]
Type=Application
Exec=/usr/local/bin/configmyx11.sh
Hidden=false
Name[en_US]=SetMyXconfig
Name=SetMyXconfig
Comment[en_US]=MATE bug workaround
Comment=MATE bug workaround
X-MATE-Autostart-Delay=0