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:
parent
773b9bedb6
commit
207de4778b
2 changed files with 9 additions and 0 deletions
|
@ -0,0 +1 @@
|
||||||
|
../geoclue-agent.service
|
8
services/.config/systemd/user/geoclue-agent.service
Normal file
8
services/.config/systemd/user/geoclue-agent.service
Normal 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
|
Loading…
Reference in a new issue