# The agent, as a systemd user service. # # Kadence on the desktop is a tray agent: it enforces the server's blocking # policy on this machine, posts notifications with buttons, answers D-Bus and # shows a floating countdown. None of that needs a window, so running it from # login is the normal arrangement — `--minimized` starts it with nothing on # screen and the mini timer appears by itself when an interval starts. # # Settings -> "Run as a systemd user service" writes this same unit with an # absolute ExecStart; this copy is for installing it by hand: # # mkdir -p ~/.config/systemd/user # cp desktop/packaging/kadence-desktop.service ~/.config/systemd/user/ # systemctl --user daemon-reload # systemctl --user enable --now kadence-desktop # journalctl --user -u kadence-desktop -f # # `PartOf`/`WantedBy=graphical-session.target` because the tray, the # notifications and the KWin rule all need a session to be in. [Unit] Description=Kadence desktop client PartOf=graphical-session.target After=graphical-session.target [Service] Type=simple ExecStart=%h/.local/bin/kadence-desktop --minimized Restart=on-failure RestartSec=5 [Install] WantedBy=graphical-session.target