File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,6 +86,24 @@ aplay -l 2>/dev/null || echo "No ALSA playback devices found"
8686# Wait for audio system to stabilize
8787sleep 2
8888
89- echo " === Starting application ==="
89+ echo " === Verifying System Readiness ==="
90+
91+ # Wait for X server to be fully functional
92+ echo " Waiting for X server to be fully ready..."
93+ while ! xdpyinfo -display :$DISPLAY_NUM > /dev/null 2>&1 ; do
94+ echo " X server not yet ready, waiting..."
95+ sleep 2
96+ done
97+ echo " ✓ X server is ready"
98+
99+ # Wait for PulseAudio to be fully functional
100+ echo " Waiting for PulseAudio to be ready..."
101+ while ! pactl info > /dev/null 2>&1 ; do
102+ echo " PulseAudio not yet ready, waiting..."
103+ sleep 2
104+ done
105+ echo " ✓ PulseAudio is responding"
106+
107+ echo " === All Dependencies Ready - Starting Application ==="
90108# Start the stream application
91109exec /stream
You can’t perform that action at this time.
0 commit comments