Lines 2205-2245javascript
2205 writeLine(" the user dbus socket. The systemd user manager is fine; the bus\n");
2206 writeLine(" socket just isn't reachable from your shell.\n\n");
2207 writeLine(" Quick fix (one-shot, lost on reboot):\n");
2208 writeLine(" sudo umount -l /run/user/$(id -u)\n\n");
2209 writeLine(" Permanent fix — install a boot-time helper, then update wsl.conf:\n\n");
2210 writeLine(" sudo tee /usr/local/bin/strip-wslg-overlay.sh >/dev/null <<'EOF'\n");
2211 writeLine(" #!/bin/sh\n");
2212 writeLine(" for d in /run/user/*; do\n");
2213 writeLine(" uid=$(basename \"$d\")\n");
2214 writeLine(" case \"$uid\" in \"\"|*[!0-9]*) continue ;; esac\n");
2215 writeLine(" for i in $(seq 1 30); do\n");
2216 writeLine(" if mount | grep -q \"tmpfs on $d .*mode=755\"; then\n");
2217 writeLine(" umount -l \"$d\"; break\n");
2219 writeLine(" sleep 1\n");
2220 writeLine(" done\n");
2221 writeLine(" done\n");
2222 writeLine(" EOF\n");
2223 writeLine(" sudo chmod +x /usr/local/bin/strip-wslg-overlay.sh\n\n");
2224 writeLine(" Then add to /etc/wsl.conf under [boot]:\n");
2225 writeLine(" command=/usr/local/bin/strip-wslg-overlay.sh\n\n");
2226 writeLine(" Then run `wsl --shutdown` in Windows PowerShell and reopen the shell.\n");
2228 writeLine(" Try `--foreground` to run inline instead.\n\n");
2231 const after = getClientServiceStatus();
2233 writeLine(` Started ${after.platform} service${after.detail ? ` (${after.detail})` : ""}.\n`);
2234 writeLine(` Logs: ${join(after.logDir, "client.log")}\n`);
2235 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,
2238 if (svc.state === "unknown") {
2239 writeLine(`\n Service state could not be determined (${svc.platform}${svc.detail ? `: ${svc.detail}` : ""}).\n`);
2240 writeLine(` Inspect with \`${binName} daemon doctor\`, or pass \`--foreground\` to bypass.\n\n`);
2244 await promptMissingFields({
2245 schema: clientConfigSchema,