services: Add geoclue agent as systemd autostart

Added geoclue as a unit file and set it to autostart by default.
Redshift on archlinux has problems working correctly if there is no
(gnome?) desktop environment and the geoclue agent has thus not been
started yet. This simply runs it on startup as a user service and
redshift subsequently picks it up to get its location from.
This commit is contained in:
Marty Oehme 2021-04-12 18:40:47 +02:00
parent 773b9bedb6
commit 207de4778b
Signed by: Marty
GPG key ID: B7538B8F50A1C800
2 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1 @@
../geoclue-agent.service

View file

@ -0,0 +1,8 @@
[Unit]
Description=redshift needs to get a (geo)clue
[Service]
ExecStart=/usr/lib/geoclue-2.0/demos/agent
[Install]
WantedBy=default.target