Merge pull request #2005 from matt335672/alpine_support

Rework alpine support (#2005)
This commit is contained in:
matt335672 2021-10-08 10:56:45 +01:00 committed by GitHub
commit c11d0e3d2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,6 +71,19 @@ wm_start()
exit 0
fi
# alpine
# Don't use /etc/X11/xinit/Xsession - it doesn't work
if [ -f /etc/alpine-release ]; then
if [ -f /etc/X11/xinit/xinitrc ]; then
pre_start
/etc/X11/xinit/xinitrc
post_start
else
echo "** xinit package isn't installed" >&2
exit 1
fi
fi
# el
if [ -r /etc/X11/xinit/Xsession ]; then
pre_start
@ -90,14 +103,6 @@ wm_start()
exit 0
fi
# alpine
if [ -r /etc/X11/xinit/xinitrc ]; then
pre_start
. /etc/X11/xinit/xinitrc
post_start
exit 0
fi
pre_start
xterm
post_start