fingerprintd/packaging/fingerprintd-agent.service

23 lines
944 B
SYSTEMD
Raw Permalink Normal View History

# SPDX-License-Identifier: GPL-3.0-only
# SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
# A USER unit: it runs as you, in your session, which is the whole point.
# `systemctl --user enable --now fingerprintd-agent`
[Unit]
Description=Run things in your session when a fingerprint matches
Documentation=https://forgejo.catcrafts.net/Catcrafts/fingerprintd
# Nothing to do without a map. Absent file, absent feature.
ConditionPathExists=%h/.config/fingerprintd/fingers.conf
[Service]
Type=simple
ExecStart=/usr/bin/fingerprintd-agent
# It only listens on the system bus and spawns your commands; if it dies,
# restarting costs nothing and losing it silently would be confusing.
Restart=on-failure
RestartSec=5
[Install]
# default.target rather than graphical-session.target: the agent needs your
# session bus, not a display, and Plasma Mobile does not reliably reach
# graphical-session.target on this device.
WantedBy=default.target