[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Redshift and Geoclue
From: |
Pierre Neidhardt |
Subject: |
Redshift and Geoclue |
Date: |
Thu, 05 Dec 2019 12:19:18 +0100 |
Hi!
I'd like to set up Redshift to use the Geoclue service to automatically
determine my location.
I see that the geoclue service is part of the default desktop services,
however no "geoclue" process is running in the background for me.
If I run
/gnu/store/jzwzbi56q04h2svgw2s7i96fvxy914vi-geoclue-2.4.8/libexec/geoclue-2.0/demos/where-am-i
it returns after some 30 seconds without outputting anything.
If I start `redshift`, I get the following output:
--8<---------------cut here---------------start------------->8---
Trying location provider `geoclue2'...
Using provider `geoclue2'.
Using method `randr'.
Waiting for initial location to become available...
--8<---------------cut here---------------end--------------->8---
and it hangs forever.
I guess the geoclue service is not running or needs more configuration.
Looking at the geoclue service configuration, I see that I need to
whitelist some applications.
Should I add "redshift" to %standard-geoclue-applications this way?
--8<---------------cut here---------------start------------->8---
(geoclue-service ...
#:applications
(cons* (geoclue-application "redshift" #:system? #f)
%standard-geoclue-applications))
--8<---------------cut here---------------end--------------->8---
Would it still work if "redshift" is not a desktop application (it does
not come with a .desktop file)?
--
Pierre Neidhardt
https://ambrevar.xyz/
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Redshift and Geoclue,
Pierre Neidhardt <=