double slachback should finally make path work correctly so keyboard wont failt

This commit is contained in:
2026-08-04 14:08:39 +01:00
parent b84c728470
commit bc50fdf1ca
+1 -1
View File
@@ -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);