Autostart Fusuma using systemd user service
mainUse systemd to manage Fusuma (provides auto-restart on failure and journal-based logs).
Setup Steps:
- Find the real binary path. If using a Ruby version manager (rbenv, asdf, etc.), use
readlink -f $(which fusuma)to resolve the actual path. - Create
~/.config/systemd/user/fusuma.servicewith the content provided below (replacing{path_to_fusuma}). - Note: Do NOT use the
-dor--daemonflag; systemd requires the process to run in the foreground (Type=simple). - Reload and enable the service.
Commands:
systemctl --user daemon-reload
systemctl --user enable --now fusuma.serviceManagement:
- Check status:
systemctl --user status fusuma.service - View logs:
journalctl --user -u fusuma.service -f
[Unit]
Description=Fusuma (multitouch gesture recognizer)
Documentation=https://github.com/iberianpig/fusuma
PartOf=graphical-session.target
After=graphical-session.target
[Service]
Type=simple
ExecStart={path_to_fusuma}
Restart=on-failure
RestartSec=3
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=graphical-session.target