user service works

This commit is contained in:
valere
2025-10-05 23:45:22 +02:00
parent 44f4df5c72
commit a356f4c003
3 changed files with 33 additions and 40 deletions

View File

@@ -1,15 +1,13 @@
[Unit]
Description=Pad Dolphin Watcher Service (User)
After=graphical.target dev-uinput.device
After=graphical.target
[Service]
ExecStartPre=/bin/sleep 10
ExecStart=/home/$USER/.local/bin/gamecube-pad.py
WorkingDirectory=/home/$USER
Type=simple
ExecStart=/usr/bin/python3 /home/%u/.local/bin/gamecube-pad.py
Restart=always
RestartSec=3
StandardOutput=journal+console
StandardError=journal+console
WorkingDirectory=/home/%u
[Install]
WantedBy=default.target