The bookmarkable dashboard URL now works on Linux. setup-daemon registers a systemd --user unit that starts at login and serves http://localhost:24842/token-optimizer with the same UX Windows and macOS users have had since v5.3.2.
What's new
- systemd
--userunit at~/.config/systemd/user/token-optimizer-dashboard.service(or $XDG_CONFIG_HOME). No root required. - Shell launcher (
dashboard-launcher.sh) resolves Python at runtime so pipx venv removals, distro upgrades, and brew swaps no longer strand the unit. - User-bus reachability probe via
systemctl --user list-unitscatches SSH-without-linger, cron contexts, and WSL2 without systemd — the old--versionprobe passed even when the bus was dead. - Rollback on failure: a failed enable removes the unit and launcher files so a retry doesn't inherit a half-install.
- Quoted ExecStart so HOME directories with spaces survive systemd tokenization.
Install
python3 measure.py setup-daemon
Persist across logout
loginctl enable-linger $USER
(May need sudo on some distros. The installer surfaces this as a hint, not an auto-step.)
Not tested on a real Linux host
v5.3.5 was fixture-tested on macOS. First Linux user to run setup-daemon is the de facto smoke test. If install fails, please paste the output of systemctl --user status token-optimizer-dashboard and journalctl --user -u token-optimizer-dashboard -n 50 into a GitHub issue.