Skip to content
Snippets Groups Projects
Commit d9ed139c authored by minute's avatar minute
Browse files

reform-windowmaker: wait for x startup

parent d768e038
No related branches found
No related tags found
1 merge request!13(Probably) final changes for first release
...@@ -20,7 +20,7 @@ export LANG=C ...@@ -20,7 +20,7 @@ export LANG=C
# install applications # 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 apt install -y chromium evolution freecad ardour sxiv neverball scummvm dosbox wf-recorder wev linphone-desktop
# install patched software from mntre # install patched software from mntre
......
...@@ -8,14 +8,26 @@ ...@@ -8,14 +8,26 @@
# exec xfce4-session # exec xfce4-session
# #
cage -- /usr/local/bin/Xwayland -retro & DNUM=:0
sleep 2
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 WAYLAND_DISPLAY=null # Hack, but works
export DISPLAY=:0
export GDK_BACKEND=x11 export GDK_BACKEND=x11
unset SDL_VIDEODRIVER unset SDL_VIDEODRIVER
xterm &
exec wmaker exec wmaker
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