From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KKRYDdGAt2KiDgAAbAwnHQ (envelope-from ) for ; Sat, 25 Jun 2022 23:40:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yOd/DNGAt2JaBQAAG6o9tA (envelope-from ) for ; Sat, 25 Jun 2022 23:40:33 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 985BA14CBE for ; Sat, 25 Jun 2022 23:40:32 +0200 (CEST) Received: from localhost ([::1]:40342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5DW3-0002aj-JX for larch@yhetil.org; Sat, 25 Jun 2022 17:40:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52576) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5DVa-0002aZ-4e for guix-patches@gnu.org; Sat, 25 Jun 2022 17:40:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52427) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5DVZ-0003AN-SK for guix-patches@gnu.org; Sat, 25 Jun 2022 17:40:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5DVZ-0004mb-Lj for guix-patches@gnu.org; Sat, 25 Jun 2022 17:40:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56050] [PATCH] home: services: environment-variables: Fix XDG base directories. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 25 Jun 2022 21:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56050 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Philip McGrath Cc: 56050@debbugs.gnu.org Received: via spool by 56050-submit@debbugs.gnu.org id=B56050.165619320018373 (code B ref 56050); Sat, 25 Jun 2022 21:40:01 +0000 Received: (at 56050) by debbugs.gnu.org; 25 Jun 2022 21:40:00 +0000 Received: from localhost ([127.0.0.1]:46324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5DVL-0004m2-68 for submit@debbugs.gnu.org; Sat, 25 Jun 2022 17:40:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5DVJ-0004lq-MX for 56050@debbugs.gnu.org; Sat, 25 Jun 2022 17:39:46 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38394) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5DVE-00038c-6T; Sat, 25 Jun 2022 17:39:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=9fhqbCX2g+9P1f1fFkBxOX0crxy0zZZ73eZt9eva+ps=; b=GNbjzi1BG8BcxR3oiq7r Yp3IzXSYSS9CVPiTDqb3uHJ84d+XCQql1r2NBx310JdYmv/A+L9QWSgRSQElVKfuI3oJijHOs2TOE RIb0NC1kfFIKIoI06Pdcq2Vd3VqdPS7W+DORwBiLHrjZmlkor/h6S2Lo4/OYe2fEfaKKRXbRfR2MM V3kdwZnHr7ohcU19EIqj2yvd8KqogFKhG+iEYv7IQhn5fNLJ6JbKJj93ydfIYElPYDdSC9EU5DbtQ FFuZ31ITA/uEBfZNHb/Nq8DC29KJZY6Vv92qmdKxoVfYptw5Q19jaxno1ETxheLp0U37FsL0zm+r2 gAhYb2/kMBWiUg==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:52920 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5DVD-0006Nl-Qb; Sat, 25 Jun 2022 17:39:40 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <871qvg303w.fsf@gnu.org> <10145966.nUPlyArG6x@avalon> Date: Sat, 25 Jun 2022 23:39:37 +0200 In-Reply-To: <10145966.nUPlyArG6x@avalon> (Philip McGrath's message of "Thu, 23 Jun 2022 17:33:16 -0400") Message-ID: <878rpktobq.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656193232; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=9fhqbCX2g+9P1f1fFkBxOX0crxy0zZZ73eZt9eva+ps=; b=EIYRCMtDUj14G/CEhDrBYUCM+LIZFP6By1qTWRtyB8kUTXoy1sePvVNKw9RwAzt2VKa89E QXTa2QhveXVfX2RNMQ5LubRSrlWIvZ3fq9A2PkclUE1ObO0ssxYALsWoT31gad5udp3TaQ 3x3YyIbX/m1iekiWeAg7yEghr04JdVvFdkZoi5N5lxmYKlQOaYr5KSH2CrEzLKorgIclvL 8DdSsTTC4Ff9ngJdTVwBX7gP9ZeFRNqApFoLvLiNpAMlV54552XfrncGYEc8B2WnfWox79 D+vg5uyB3ldhWsyFsnOqb97Qn+c2tJrWuh4gigBB0xPxy9SYHT4bSLZLJhqFnA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656193232; a=rsa-sha256; cv=none; b=WB+LZUy0/bisBo4p4DFK0xAoplDr7LCgn7rglGYQsoz+Dbz8OI9hd+gD7fY8pj0fCHPwOY 3OlQfwemqwxTnShqqQ24aAZFbztQIJv64wMBd7v+GPCF3giaFEyo4wHT50CXYIR+BInr9j w7Xmoh47yeuzmA4lP8H3A7Uzwc2P63A8i5Cc32ryh+INefyU3VNjh1I0r+9Lm2sRLRqOsj PS+i3O9U8qppBtfrV3aWkrGpzd6tj0KV7QmbUGnDvpkD90U6WdbNmdi/zA/A2PndYBECbh 8D6jWxPIa8t+dZTiE1q1GAE0zVqO1bUE+EmU3ri5Bj5IVlGF3fbiw8MPJEjEUw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=GNbjzi1B; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.36 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=GNbjzi1B; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 985BA14CBE X-Spam-Score: -2.36 X-Migadu-Scanner: scn1.migadu.com X-TUID: xG5hP2ReoVUK Hi Philip, Philip McGrath skribis: > I based this patch on the file that gets installed as /etc/profile.d/guix= .sh (I haven't found its source yet). Maybe we could leave this code alone = if we change that file, instead? Then, both on Guix System and on foreign d= istros, some system-wide code would be responsible for initializing these s= earch paths, and we could assume in contexts like this that they are explic= itly set and not empty. Yes, changing /etc/profile.d/guix.sh sounds better: it allows us to provide a solution specifically for foreign distros. This file is created by =E2=80=98etc/guix-install.sh=E2=80=99, the installa= tion script given at . > One catch is that, right now, this is what was installed for me into /etc= /profile.d/guix.sh: [...] > but $HOME/.guix-profile doesn't exist for me (only $HOME/.guix-home), so = this script exits without setting GUIX_LOCPATH or XDG_DATA_DIRS. Maybe some= thing about that should change? Yes, that too! We should change it so that it checks ~/.guix-home/profile and ~/.guix-profile (in that order) and picks the right one. Would you like to give it a try? Thanks, Ludo=E2=80=99.