diff --git a/streaming-agent/signaling-server.js b/streaming-agent/signaling-server.js index 7d5996f..8ea6ffc 100644 --- a/streaming-agent/signaling-server.js +++ b/streaming-agent/signaling-server.js @@ -292,7 +292,7 @@ function performCssRestart(reason) { // has always found xdotool fine. Explicitly ensure common binary // paths are present here too, since this exact command was // silently failing with "xdotool: not found" every time. - execSync(`docker exec ${CONTAINER} bash -c "export PATH=\$PATH:/usr/bin:/usr/local/bin:/bin; DISPLAY=:99 WIN=\$(xdotool search --name '' | head -1) && xdotool windowfocus --sync \$WIN" || true`); + execSync(`docker exec ${CONTAINER} bash -c "export PATH=\\$PATH:/usr/bin:/usr/local/bin:/bin; DISPLAY=:99 WIN=\\$(xdotool search --name '' | head -1) && xdotool windowfocus --sync \\$WIN" || true`); console.log('[sig] CSS restart: focused new window'); } catch (e) { console.error('[sig] CSS restart: failed to focus new window:', e.message);