install: Add check for Xwrapper.conf file. Add it if it does not exist

This commit is contained in:
Jordan Ruthe 2021-01-08 11:09:34 -05:00
parent ffb24a2ffd
commit 32ccfc125d

View File

@ -57,8 +57,14 @@ modify_user()
update_x11() update_x11()
{ {
echo "Updating X11 configuration" if [ -e /etc/X11/Xwrapper.conf ]
then
echo "Updating X11 Xwrapper"
sudo sed -i 's/allowed_users=console/allowed_users=anybody/g' /etc/X11/Xwrapper.config sudo sed -i 's/allowed_users=console/allowed_users=anybody/g' /etc/X11/Xwrapper.config
else
echo "Adding X11 Xwrapper"
echo 'allowed_users=anybody' | sudo tee /etc/X11/Xwrapper.config
fi
} }
start_KlipperScreen() { start_KlipperScreen() {