all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pierre Neidhardt <mail@ambrevar.xyz>
To: help-guix@gnu.org
Subject: Redshift and Geoclue
Date: Thu, 05 Dec 2019 12:19:18 +0100	[thread overview]
Message-ID: <87tv6fvx3d.fsf@ambrevar.xyz> (raw)

[-- Attachment #1: Type: text/plain, Size: 1452 bytes --]

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/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

             reply	other threads:[~2019-12-05 11:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-05 11:19 Pierre Neidhardt [this message]
2020-01-08 15:55 ` Redshift and Geoclue Pierre Neidhardt
2020-01-12  5:24   ` Josh Marshall
2020-01-18 11:52   ` Josh Holland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tv6fvx3d.fsf@ambrevar.xyz \
    --to=mail@ambrevar.xyz \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.