Commit d9ed139c authored by mntmn's avatar mntmn

reform-windowmaker: wait for x startup

parent d768e038
......@@ -20,7 +20,7 @@ export LANG=C
# install applications
apt install -y libreoffice libreoffice-gtk3 inkscape firefox-esr emacs gimp wmaker
apt install -y libreoffice libreoffice-gtk3 inkscape firefox-esr emacs gimp wmaker x11-utils
apt install -y chromium evolution freecad ardour sxiv neverball scummvm dosbox wf-recorder wev linphone-desktop
# install patched software from mntre
......
......@@ -8,14 +8,26 @@
# exec xfce4-session
#
cage -- /usr/local/bin/Xwayland -retro &
sleep 2
DNUM=:0
cage -- /usr/local/bin/Xwayland $DNUM -retro -noreset &
export DISPLAY=$DNUM
# idea lifted from https://gist.github.com/tullmann/476cc71169295d5c3fe6
MAX=10
CT=0
while ! xdpyinfo >/dev/null 2>&1; do
sleep 0.50s
CT=$(( CT + 1 ))
if [ "$CT" -ge "$MAX" ]; then
LOG "FATAL: $0: Gave up waiting for X server $DISPLAY"
exit 11
fi
done
export WAYLAND_DISPLAY=null # Hack, but works
export DISPLAY=:0
export GDK_BACKEND=x11
unset SDL_VIDEODRIVER
xterm &
exec wmaker
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment