From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Redshift and Geoclue Date: Thu, 05 Dec 2019 12:19:18 +0100 Message-ID: <87tv6fvx3d.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:48035) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icpAK-0004zb-6C for help-guix@gnu.org; Thu, 05 Dec 2019 06:19:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1icpAI-0008J9-Az for help-guix@gnu.org; Thu, 05 Dec 2019 06:19:23 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:41995) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1icpAI-0008A7-16 for help-guix@gnu.org; Thu, 05 Dec 2019 06:19:22 -0500 Received: from bababa (lfbn-1-4156-76.w92-169.abo.wanadoo.fr [92.169.151.76]) (Authenticated sender: pierre@atlas.engineer) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 4DFD740011 for ; Thu, 5 Dec 2019 11:19:18 +0000 (UTC) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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: =2D-8<---------------cut here---------------start------------->8--- Trying location provider `geoclue2'... Using provider `geoclue2'. Using method `randr'. Waiting for initial location to become available... =2D-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? =2D-8<---------------cut here---------------start------------->8--- (geoclue-service ... #:applications (cons* (geoclue-application "redshift" #:system? #f) %standard-geoclue-applications)) =2D-8<---------------cut here---------------end--------------->8--- Would it still work if "redshift" is not a desktop application (it does not come with a .desktop file)? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl3o57YACgkQm9z0l6S7 zH9PDgf/QeO+kR3hwYOBLmncIDbk0URiyj8Ys31eZxhP3M9Th6L6rFzoxDpDxMMq SaFzajoooIhdRhMTFiZcSMRN9h7tqJRvDuzURPpVBSL2GsbflHMFrcOl/w1dLQv2 SIi2FlqtpErp61hTfal0Yfzk5erFuucGsQ77E9PZ96dUlMc8jexOULA8rpPDklK6 OGsemV07diNQfFCTrYgHlm4ltdU7tuctbrfdI8wlbog2WJbH/HwX38LGh3mhrojr uR1qsv45/iq+aYBfMLg6DX3btaLzF5oZvUVLPxIvnykG/sWOQXscMCh9q6hN0Eqf 4zXLw9o8uRAt489qMji96u6L8J7Xkg== =Z94E -----END PGP SIGNATURE----- --=-=-=--