[Top][All Lists]

[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


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


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 ...
  (cons* (geoclue-application "redshift" #:system? #f)
--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

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]