breadcrumbs/contrib/breadcrumbs.service
Breadway b8121ae00f
All checks were successful
Mirror to GitHub / mirror (push) Successful in 1s
release / build (push) Successful in 35s
Build and publish package / package (push) Successful in 44s
Fix breadcrumbs.service: default.target not graphical-session.target
graphical-session.target ships RefuseManualStart=yes and BOS has no
session manager to activate it properly (the same issue worked around
for breadclipd) - breadcrumbs doesn't need a Wayland session anyway,
so default.target avoids the problem entirely.
2026-07-03 17:59:38 +08:00

30 lines
1.2 KiB
Desktop File

[Unit]
Description=breadcrumbs Wi-Fi state machine watcher
Documentation=https://git.breadway.dev/Breadway/breadcrumbs
After=network.target NetworkManager.service
Wants=network.target
[Service]
Type=simple
Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# ExecStart is rewritten at install time by bakery to point at the real
# bin_dir (patch_exec_start in bakery's install.rs) — this path is only a
# placeholder for local testing.
ExecStart=%h/.local/bin/breadcrumbs watch
Restart=always
RestartSec=5
Nice=5
# Forward stdout/stderr to the journal so `journalctl --user -u breadcrumbs` works
StandardOutput=journal
StandardError=journal
[Install]
# default.target, not graphical-session.target: breadcrumbs is a headless
# network daemon with no Wayland/GUI dependency, and graphical-session.target
# ships with RefuseManualStart=yes (only a session manager like uwsm can
# activate it — BOS doesn't use one, which is why breadclipd needs a manual
# `systemctl --user start` in hyprland.lua's exec-once instead of relying on
# WantedBy). default.target activates normally with the user session, no
# workaround needed.
WantedBy=default.target