mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 19:23:10 +02:00
git-subtree-dir: linux_configuration git-subtree-mainline:11427631cdgit-subtree-split:0762e3d07b
30 lines
642 B
Desktop File
30 lines
642 B
Desktop File
[Unit]
|
|
Description=Bachelor Thesis Work Tracker
|
|
Documentation=man:systemd.service(5)
|
|
After=graphical.target
|
|
Wants=graphical.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/local/bin/thesis_work_tracker.sh
|
|
Restart=always
|
|
RestartSec=10
|
|
|
|
# Run as the user who is logged in (for X11/window detection)
|
|
User=%i
|
|
Environment="DISPLAY=:0"
|
|
Environment="XAUTHORITY=/home/%i/.Xauthority"
|
|
|
|
# Logging
|
|
StandardOutput=append:/var/log/thesis-work-tracker/tracker.log
|
|
StandardError=append:/var/log/thesis-work-tracker/tracker.log
|
|
|
|
# Security hardening
|
|
NoNewPrivileges=false
|
|
PrivateTmp=true
|
|
ProtectSystem=false
|
|
ProtectHome=false
|
|
|
|
[Install]
|
|
WantedBy=default.target
|