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