Lines 2186-2226javascript
2186 print.line(" the user dbus socket. The systemd user manager is fine; the bus\n");
2187 print.line(" socket just isn't reachable from your shell.\n\n");
2188 print.line(" Quick fix (one-shot, lost on reboot):\n");
2189 print.line(" sudo umount -l /run/user/$(id -u)\n\n");
2190 print.line(" Permanent fix — install a boot-time helper, then update wsl.conf:\n\n");
2191 print.line(" sudo tee /usr/local/bin/strip-wslg-overlay.sh >/dev/null <<'EOF'\n");
2192 print.line(" #!/bin/sh\n");
2193 print.line(" for d in /run/user/*; do\n");
2194 print.line(" uid=$(basename \"$d\")\n");
2195 print.line(" case \"$uid\" in \"\"|*[!0-9]*) continue ;; esac\n");
2196 print.line(" for i in $(seq 1 30); do\n");
2197 print.line(" if mount | grep -q \"tmpfs on $d .*mode=755\"; then\n");
2198 print.line(" umount -l \"$d\"; break\n");
2199 print.line(" fi\n");
2200 print.line(" sleep 1\n");
2201 print.line(" done\n");
2202 print.line(" done\n");
2203 print.line(" EOF\n");
2204 print.line(" sudo chmod +x /usr/local/bin/strip-wslg-overlay.sh\n\n");
2205 print.line(" Then add to /etc/wsl.conf under [boot]:\n");
2206 print.line(" command=/usr/local/bin/strip-wslg-overlay.sh\n\n");
2207 print.line(" Then run `wsl --shutdown` in Windows PowerShell and reopen the shell.\n");
2209 print.line(" Try `--foreground` to run inline instead.\n\n");
2212 const after = getClientServiceStatus();
2214 print.line(` Started ${after.platform} service${after.detail ? ` (${after.detail})` : ""}.\n`);
2215 const journalHint = after.platform === "systemd" ? ` (or \`journalctl --user -u ${after.label.replace(/\.service$/, "")}\`)` : "";
2216 print.line(` Logs: ${after.logDir}${journalHint}\n\n`);
2219 if (svc.state === "unknown") {
2220 print.line(`\n Service state could not be determined (${svc.platform}${svc.detail ? `: ${svc.detail}` : ""}).\n`);
2221 print.line(` Inspect with \`${binName} daemon doctor\`, or pass \`--foreground\` to bypass.\n\n`);
2225 await promptMissingFields({
2226 schema: clientConfigSchema,