distro-files: better startwm handling

This commit is contained in:
Matheus
2024-09-05 19:15:28 -03:00
parent 6ef3609789
commit 515a4689a6
2 changed files with 9 additions and 2 deletions
-21
View File
@@ -1,21 +0,0 @@
#!/usr/bin/bash
export DISPLAY=":0"
X &
while [ 1 ]
do
if [ -S /tmp/.X11-unix/X0 ]
then
break
fi
if [ $SECONDS -gt 15 ]
then
echo timeout
exit 1
fi
sleep 0.5
done
stty -echo -echoctl -isig
xterm -e "bash -l" & &> /tmp/.xtermstderr > /tmp/.xtermstdout
exec fvwm3 &> /tmp/.fvwm3stderr > /tmp/.fvwm3stdout