From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id cN2LDRdUi2RWkwAASxT56A (envelope-from ) for ; Thu, 15 Jun 2023 20:10:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eF6ZDRdUi2SwLgEAauVa8A (envelope-from ) for ; Thu, 15 Jun 2023 20:10:31 +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 ECFA415DDB for ; Thu, 15 Jun 2023 20:10:30 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q9rQ7-0002T2-7I; Thu, 15 Jun 2023 14:10:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9rQ2-0002Sd-LA for guix-patches@gnu.org; Thu, 15 Jun 2023 14:10:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q9rQ2-0007fs-5K for guix-patches@gnu.org; Thu, 15 Jun 2023 14:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q9rQ1-0006bb-SA for guix-patches@gnu.org; Thu, 15 Jun 2023 14:10:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#61982] [PATCH 2/2] home: services: xdg-base-directories: Deprecate XDG_LOG_HOME. Resent-From: "Philip McGrath" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 15 Jun 2023 18:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61982 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "Andrew Tropin" , "Bruno Victal" , 61982@debbugs.gnu.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 61982-submit@debbugs.gnu.org id=B61982.168685259225366 (code B ref 61982); Thu, 15 Jun 2023 18:10:01 +0000 Received: (at 61982) by debbugs.gnu.org; 15 Jun 2023 18:09:52 +0000 Received: from localhost ([127.0.0.1]:47899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9rPr-0006b4-Kl for submit@debbugs.gnu.org; Thu, 15 Jun 2023 14:09:51 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:33179) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9rPp-0006ar-8W for 61982@debbugs.gnu.org; Thu, 15 Jun 2023 14:09:49 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 454C032009FF; Thu, 15 Jun 2023 14:09:43 -0400 (EDT) Received: from imap52 ([10.202.2.102]) by compute1.internal (MEProxy); Thu, 15 Jun 2023 14:09:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= philipmcgrath.com; h=cc:content-type:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1686852582; x= 1686938982; bh=p/RJzA8w6li56b4w7s8Y0EXPAer03am1BAZVVA+nFqQ=; b=E mul7y5qYXach2kuCblBlX+gCOv3ShW/y2ogB9NgzOd1yGYkQkdSZcEx/fXPDFcPM lyYsnS8ChVu38GO4MNHIKtAPtExDvCcwIvyXSniMC5UFRqm4ECY0yXNrZf8h46gR Dxl4BX4E0WWFVZJWKighaLyjmVHP+DVQKOUAUBclptyr/Fn9GA1x0CqibD0dPZoC lkYzxw7R3vpbZhEQKeF5K90CtEhyzxbtLoJNODCaExOvhB93sRi87nqhH9c55xkO y9/TF4XdYpC66RtqDzN59IFkPokfv5wXOjU1OHc+y/GFo3p2R8I1XYIXRnymyDrH oxEJDT8ev5O7CW8HXgoPQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1686852582; x=1686938982; bh=p/RJzA8w6li56 b4w7s8Y0EXPAer03am1BAZVVA+nFqQ=; b=NjROEa5KrXY5l8xfkNzLrbefxXRqY j1pOoTvvEWreW+POOxbDS1Ra+DjPut5EIyUnb8PRnjviyfegaAc9BsYgFGGX/KqE Fk9D1cR05CeQkrloUC4Et/KuEm7oWJEGcQkroyxRFAz5mPkZXmf6ImVL/U3NlXd6 zysGO/DPAIfrsGhqoMIjadQcAh3CpHndZeqRNe9hw7W4MWjB7X8NvAOtkXFqEo7r hJwab5Uj1EKSZiL6u2TC4qJg46ERKQqxghFdyCBVpe4gcJS1zJH93ZNmIhCJHeIj vyYHniEGEtJMqnFysCbIUm2+QkqoppaDV9TFdgMSmznOJz/dbT0ou+Twg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgedvvddguddukecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfrfhh ihhlihhpucfotgfirhgrthhhfdcuoehphhhilhhiphesphhhihhlihhpmhgtghhrrghthh drtghomheqnecuggftrfgrthhtvghrnhepgfdvuddtkeeuvedvgeekjeegueeiheehgeeg teeigeevhfegieeiueffvdfhieeunecuffhomhgrihhnpehgnhhurdhorhhgnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphhhihhlihhpsehp hhhilhhiphhmtghgrhgrthhhrdgtohhm X-ME-Proxy: Feedback-ID: i2b1146f3:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 6BF42C60091; Thu, 15 Jun 2023 14:09:42 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-496-g8c46984af0-fm-20230615.001-g8c46984a Mime-Version: 1.0 Message-Id: In-Reply-To: <87a5x1rrtv.fsf@trop.in> References: <3005f8a58ec5afc447f2baf40958956bd0d16099.1678029530.git.mirai@makinata.eu> <0a0764da3fa04f9a02f37a7960a0c9608782854d.1678029530.git.mirai@makinata.eu> <87a5x1rrtv.fsf@trop.in> Date: Thu, 15 Jun 2023 14:09:22 -0400 From: "Philip McGrath" Content-Type: text/plain 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686852631; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: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=p/RJzA8w6li56b4w7s8Y0EXPAer03am1BAZVVA+nFqQ=; b=kqoPpYu75+T0dTbO0XI1Vi/djF/Zntm5f6tr9EeAjzoIUcOGC64DTL/OVO+xJU7y1wP2gg 8i29T7y3BAz3ZOH75vt5DC//NqjCfZIDFW9V8fKpJC9PHjosKd0jcz/xF1J6R6NHPL7skg TFYe82GapZO2A++gsp45yf87tPTfHd34whuRmRiXqyPP0z9uVksglhZbbz7Mygt62yijPj 7ViZpyOo+Ie2r0TuzrA7kymYd0SbA85rR4rpMB8VZrL7je9twF6Vq0b+Kv1uOxrYi34TJF Rs6NyhN8cG8CxHz1frpP8Z8oK+XXjKa9W2BEYF+mqKZc0cDtDgup6UIZiwtAMQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm2 header.b="E mul7y5"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=NjROEa5K; dmarc=none; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686852631; a=rsa-sha256; cv=none; b=tiEJkIyhCRILR1QrFYq7nktshRpDPArMo4TVRcFMKyPxygbuig1FKLUjZYqaP3TkG9N05W k/VzmX3AptUGw4gUiFSy/hhv56kKJoaX4sxC4HFimVB20XHqTg9Obo9ZJaDVXDcnMwHsZ6 aucxdWiV/IS3oZsKehKov7TYvGPzdOVGfooT0i6j0uKuFG+dtLwW4KlTaXlVikQXpUxag+ NVg0EZ6LAXxOZlTbHE0U3c+N1Q4JB29xR7v8Brip5E9BdbM+Pn5b1LOpKSxPWyQdWmj34g 2mDvfkxn+9/przmHw7VaTFa8abIsP0A6CLlR6ZyvUdm/Tk3xidEp+FgBibKyDQ== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -0.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm2 header.b="E mul7y5"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=NjROEa5K; dmarc=none; 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: ECFA415DDB X-Spam-Score: -0.32 X-TUID: 5faCTtUnD1Gy Hi, On Thu, Jun 15, 2023, at 5:35 AM, Andrew Tropin wrote: > > WDYT about adding (home-log-dir) function to (guix build utils)? > So we can prevent copypasting the same code all over home modules. > > Something like: > --8<---------------cut here---------------start------------->8--- > (define (home-log-dir) > "Returns a directory for user applications logs." > (string-append > (or (getenv "XDG_STATE_HOME") > (format #f "~a/.local/state" > (getenv "HOME"))) > "/log")) > --8<---------------cut here---------------end--------------->8--- > I still think idiomatic XDG structure is NOT to have a "/log" subdirectory like this, as I explained in . Aside from that, though, I thought the conclusion from was that it is the responsibility of Guix System or the installation mechanism for Guix on a foreign distribution (e.g. "/etc/profile.d/zzz-guix.sh") to initialize all of the XDG variables, so code like this can use `(getenv "XDG_STATE_HOME")` unconditionally (or indeed with a checked assertion). Maybe there's some context I'm forgetting, though. I've been looking into these things again as I attempt to solve : I noticed in the attached environment variables that entries under /home/philip/.guix-home/profile/ are duplicated in many search paths. -Philip