Lines 2305-2345javascript
2305 writeLine(" the user dbus socket. The systemd user manager is fine; the bus\n");
2306 writeLine(" socket just isn't reachable from your shell.\n\n");
2307 writeLine(" Quick fix (one-shot, lost on reboot):\n");
2308 writeLine(" sudo umount -l /run/user/$(id -u)\n\n");
2309 writeLine(" Permanent fix — install a boot-time helper, then update wsl.conf:\n\n");
2310 writeLine(" sudo tee /usr/local/bin/strip-wslg-overlay.sh >/dev/null <<'EOF'\n");
2311 writeLine(" #!/bin/sh\n");
2312 writeLine(" for d in /run/user/*; do\n");
2313 writeLine(" uid=$(basename \"$d\")\n");
2314 writeLine(" case \"$uid\" in \"\"|*[!0-9]*) continue ;; esac\n");
2315 writeLine(" for i in $(seq 1 30); do\n");
2316 writeLine(" if mount | grep -q \"tmpfs on $d .*mode=755\"; then\n");
2317 writeLine(" umount -l \"$d\"; break\n");
2319 writeLine(" sleep 1\n");
2320 writeLine(" done\n");
2321 writeLine(" done\n");
2322 writeLine(" EOF\n");
2323 writeLine(" sudo chmod +x /usr/local/bin/strip-wslg-overlay.sh\n\n");
2324 writeLine(" Then add to /etc/wsl.conf under [boot]:\n");
2325 writeLine(" command=/usr/local/bin/strip-wslg-overlay.sh\n\n");
2326 writeLine(" Then run `wsl --shutdown` in Windows PowerShell and reopen the shell.\n");
2328 writeLine(" Try `--foreground` to run inline instead.\n\n");
2331 const after = getClientServiceStatus();
2333 writeLine(` Started ${after.platform} service${after.detail ? ` (${after.detail})` : ""}.\n`);
2334 writeLine(` Logs: ${join(after.logDir, "client.log")}\n`);
2335 writeLine(after.platform === "systemd" ? ` Supervisor fallback: \`journalctl --user -u ${after.label.replace(/\.service$/, "")}\`\n\n` : ` Supervisor fallback: ${join(after.logDir, "client.stdout.log")} / ${join(after.logDir,
2338 if (svc.state === "unknown") {
2339 writeLine(`\n Service state could not be determined (${svc.platform}${svc.detail ? `: ${svc.detail}` : ""}).\n`);
2340 writeLine(` Inspect with \`${binName} daemon doctor\`, or pass \`--foreground\` to bypass.\n\n`);
2344 await promptMissingFields({
2345 schema: clientConfigSchema,