Skip to content

Commit e853838

Browse files
committed
fix xorg container
1 parent 88f1e77 commit e853838

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

images/xorg/scripts/startup.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,15 @@ jwm=$!
4040
# Setting up resolution
4141
RESOLUTION=${RESOLUTION:-1920x1080}
4242
REFRESH_RATE=${REFRESH_RATE:-60}
43-
/opt/gow/wait-x11
43+
44+
# wait for the X server to finish starting
45+
for i in {0..120}; do
46+
if xdpyinfo >/dev/null 2>&1; then
47+
break
48+
fi
49+
50+
sleep 1s
51+
done
4452

4553
output_log=$'Detected outputs:\n'
4654
for out in $(xrandr --current | awk '/ (dis)?connected/ { print $1 }'); do

0 commit comments

Comments
 (0)