From unknown Wed Jun 18 00:12:16 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#61809 <61809@debbugs.gnu.org> To: bug#61809 <61809@debbugs.gnu.org> Subject: Status: (gnu home services xdg): Wrong value for $XDG_STATE_HOME Reply-To: bug#61809 <61809@debbugs.gnu.org> Date: Wed, 18 Jun 2025 07:12:16 +0000 retitle 61809 (gnu home services xdg): Wrong value for $XDG_STATE_HOME reassign 61809 guix submitter 61809 Philip McGrath severity 61809 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 26 06:43:43 2023 Received: (at submit) by debbugs.gnu.org; 26 Feb 2023 11:43:44 +0000 Received: from localhost ([127.0.0.1]:42466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWFRP-0002V8-Cc for submit@debbugs.gnu.org; Sun, 26 Feb 2023 06:43:43 -0500 Received: from lists.gnu.org ([209.51.188.17]:42494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWFRM-0002V0-Fp for submit@debbugs.gnu.org; Sun, 26 Feb 2023 06:43:41 -0500 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 1pWFRM-0005GF-1c for bug-guix@gnu.org; Sun, 26 Feb 2023 06:43:40 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWFRK-00078T-74 for bug-guix@gnu.org; Sun, 26 Feb 2023 06:43:39 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 4756D5C009A for ; Sun, 26 Feb 2023 06:43:35 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 26 Feb 2023 06:43:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= philipmcgrath.com; h=cc:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm1; t=1677411815; x=1677498215; bh=J/jThk0rBy FBUAxkoNDi0872WXkWK2MzBC/wCr5hLjo=; b=eoVHwRw9hx/heBf2LzRDuO5um8 eIEzK8+hAS9tGzZKPZ53tKHPNnPl9kU1J0vczowVOa4M67RkyYr/+eDFYis1hOYY FAlNbYFt8QemrjLI/2sPRG3YiD7/o2U1T8ILnFc+kYYuv9O531GeHTWvMr2U44je lsuBi7UKPA5YCzA2u5YLcLD8jWfPz/DNjy8rPxr3t04jBNBJ0VzWOv76CZeSatGb mPBPut5pCoRzZmY3kpSvKzclRntNVB2qr3wfJ77b1D1xr0y+bkijcnU4R5vzWrDN +BQXZdZTDb3pj6+xXlksclWYqEaXhNSMWU43QXdx8EOkABcizUGQQwaeKHHA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1677411815; x= 1677498215; bh=J/jThk0rByFBUAxkoNDi0872WXkWK2MzBC/wCr5hLjo=; b=b 0hMZuAIAoQMNT9+5adJwgEYm22LHyJMECT4g22vNmKdpli41nL0tkUMtQZVm/0Bq xN7OC9huzWlEnjZdTQeazNYbS28dzKKSVWDpDvW+xiiJI0y2tsmZeqfEyi2y6MwX i2F2yfV5RF0iBQyUzD8iM1AEalobsRexteygqFt27TG/h1C+KjyLPp28e5iamP+U g2f2qDbr2taTkZrmmZzXxSJduukvoEHE6YVZsGL3fZPcgbi1Ybn78m796inudgnx YwRwLGYM3iKqvCo1In4klCPvDspsfcqqjQ+eNaJa7yZtxiVReBXiZqES9UgsvXWs X1waM2U1cBveHCyOfcZJQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudekkedgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehgtderredttd ejnecuhfhrohhmpefrhhhilhhiphcuofgtifhrrghthhcuoehphhhilhhiphesphhhihhl ihhpmhgtghhrrghthhdrtghomheqnecuggftrfgrthhtvghrnhepheehiedtleekheffhe eggfdvvdeuueegkeevgeetudehudevhfduhffffffhvddunecuffhomhgrihhnpehhohhm vgdrlhhotggrlhdpfhhrvggvuggvshhkthhophdrohhrghenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehphhhilhhiphesphhhihhlihhpmhgt ghhrrghthhdrtghomh X-ME-Proxy: Feedback-ID: i2b1146f3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 26 Feb 2023 06:43:34 -0500 (EST) From: Philip McGrath To: bug-guix Subject: (gnu home services xdg): Wrong value for $XDG_STATE_HOME Date: Sun, 26 Feb 2023 06:43:27 -0500 Message-ID: <21836149.EfDdHjke4D@bastet> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart7540026.EvYhyI6sBW"; micalg="pgp-sha512"; protocol="application/pgp-signature" Received-SPF: pass client-ip=66.111.4.26; envelope-from=philip@philipmcgrath.com; helo=out2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) --nextPart7540026.EvYhyI6sBW Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: Philip McGrath To: bug-guix Subject: (gnu home services xdg): Wrong value for $XDG_STATE_HOME Date: Sun, 26 Feb 2023 06:43:27 -0500 Message-ID: <21836149.EfDdHjke4D@bastet> MIME-Version: 1.0 Hi, The following part of the definition of `home-xdg-base-directories-configuration` in `(gnu home services xdg)` is=20 wrong: ``` (state-home (path "$HOME/.local/var/lib") "Base directory for programs to store state files, like databases, analogus to @file{/var/lib}, but for user. It is not a part of XDG Base Directory Specification, but helps to make implementation of home services more consistent.") ``` =46irst of all, version 0.8 of the XDG Base Directory Specification added a= =20 specification of $XDG_STATE_HOME in May 2021: https://specifications.freedesktop.org/basedir-spec/basedir-spec-0.8.html Unfortunately, "$HOME/.local/var/lib" is not the specified default value: t= he=20 specification says it should be "$HOME/.local/state". Can we just fix the default value, or do we need a more involved compatibil= ity=20 plan? Maybe we should mention it in the channel news? Since the spec says i= t=20 should contain data "that is not important or portable enough to the user t= hat=20 it should be stored in $XDG_DATA_HOME", maybe just changing it would be ok. Moreover, it seems like the actually non-standard variable $XDG_LOG_HOME: ``` (log-home (path "$HOME/.local/var/log") "Base directory for programs to store log files, analogus to @file{/var/log}, but for user. It is not a part of XDG Base Directory Specification, but helps to make implementation of home services more consistent.") ``` overlaps with the purposes of $XDG_STATE_HOME, which the spec says: > may contain: > > - actions history (logs, history, recently used files, =E2=80=A6) > > - current state of the application that can be reused on a restart (vie= w, > layout, open files, undo history, =E2=80=A6) Do we really need $XDG_LOG_HOME? It looks like it's currently used only to= =20 control the locations of "dbus.log", "batsignal.log", "shepherd.log", and=20 "mcron.log". Could they just go in $XDG_STATE_HOME? If there is some compelling need, I think the variable name should not begi= n=20 with XDG. =2DPhilip --nextPart7540026.EvYhyI6sBW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE9GWrrNY3rqwUFVXPygNjjfo/HHoFAmP7Rd8ACgkQygNjjfo/ HHoKjBAAj24YT50JcffP5t/PYE6/6P04+uFNES7p2aKBAQchU9ay6xi1nzX9B7so lk6OgY1iKy5y/umZ0NQ4Ag1Z8AHGM8XztkO69pm9+twUoMPa5oJpS/lor4AoHJRa Ko5n7z0ZQWum5kTRCx9kIBEWa/nZfSkJ6oK8zXERTKAMyUzQ/TgSZrpRgQ7d6r2A PrDdp2i0i1t/sLewP9/N2gRhc4DElLutbkEYdub/gRCmzE1oSsDsh2RXGKlQdEMX 5vM6YRKF5Z2AXhbgRd5eHwywD7G/zG3u1eQdVGiPthFV1LJXcnGsNkEtY6GFL13N VkyPjYC/warecqLRxhGnkmDJKCcm/YrdVYU/QzrFBHdqWfl8PKqZskphxuOWs4Gt Jg3B3LRkcENnyIDP3YHdnPw7DPqwWQBzCKGUxsaWhKAvpNEz3THcCJmf9Cia5EBf /wkpRs2Fe0eUOWImNoaNlfEL9makn9nD1wJ11FhrdQ9pWLzpd5hm+Gy5SPz4Qy2D 02dY8l6kWa9s2IvTtd6DsgEGV3q3Tn5TT/llWnC8Q85b/BYekoRCxak+8FNn9ELu Ld+pPaInP/lFLDS+ww9P4VFwjvIvq78OHAXWZcYg4GPEVXTodjd3+Q0QR5muiz6w wUy8jnAHn1fSvD+KrKAuGbFqkyNXAJwB5f1bw177ib3TbUKD6u0= =o+Lo -----END PGP SIGNATURE----- --nextPart7540026.EvYhyI6sBW-- From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 05 10:44:35 2023 Received: (at 61809) by debbugs.gnu.org; 5 Mar 2023 15:44:35 +0000 Received: from localhost ([127.0.0.1]:40349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYqXK-0004EC-Rc for submit@debbugs.gnu.org; Sun, 05 Mar 2023 10:44:35 -0500 Received: from smtpmciv4.myservices.hosting ([185.26.107.240]:42558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYqXI-0004E3-2G for 61809@debbugs.gnu.org; Sun, 05 Mar 2023 10:44:33 -0500 Received: from smtpmciv8.myservices.hosting (smtpmciv8.myservices.hosting [185.26.106.203]) by smtpmciv4.myservices.hosting (Postfix) with ESMTP id 9853C2081A; Sun, 5 Mar 2023 16:44:30 +0100 (CET) Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpmciv8.myservices.hosting (Postfix) with ESMTP id 075CB20899; Sun, 5 Mar 2023 16:44:29 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 9ACB680097; Sun, 5 Mar 2023 16:44:29 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id DGcwS_FQtJn0; Sun, 5 Mar 2023 16:44:28 +0100 (CET) Received: from [192.168.1.239] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 4924880079; Sun, 5 Mar 2023 16:44:28 +0100 (CET) Message-ID: <5ec6e731-06d2-0c60-13f7-591e630d817b@makinata.eu> Date: Sun, 5 Mar 2023 15:44:17 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: bug#61809: (gnu home services xdg): Wrong value for $XDG_STATE_HOME Content-Language: en-US To: Philip McGrath References: <21836149.EfDdHjke4D@bastet> From: Bruno Victal In-Reply-To: <21836149.EfDdHjke4D@bastet> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: 61809 Cc: 61809@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) Hi Philip, Can you test the patches in ? Cheers, Bruno