From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sJJyIhJG+2MfQAAAbAwnHQ (envelope-from ) for ; Sun, 26 Feb 2023 12:44:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +KBEIhJG+2PuGwAAauVa8A (envelope-from ) for ; Sun, 26 Feb 2023 12:44:18 +0100 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 4A97E9BD2 for ; Sun, 26 Feb 2023 12:44:17 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm1 header.b=eoVHwRw9; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b="b 0hMZuA"; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677411858; a=rsa-sha256; cv=none; b=OMFcWxNDkVwIlsdIgoois/jJqzFO8LweyFAP8a9c+WUE8O6tY8fewLih5s+GkTAWzfavhp C9QBGlzTu8Hqundkln8cuf2R1xoP9VGJjGvnw5/3Yv/MsAA7Wu3yOprJ37CK1vxhgcB4ZK VP+DObZ+tAFsvgyB9pmIV3CPhF15FMd9Ul5cHLadCddum2/Gz0ooDtKRvsEDP2P+tLCu4s okGlCj5k+Qh4QaGOMkoJTaYLcg9Mkj/TLtY3U75A7BLb/KTCY+J5sCY6ZFlWXJdPWi96Rd hGXTmQGzgs6OJclY+tPewmqMylYmdpKfQldm4Xf6RNOuCqC10QecoRrKJDrXpA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm1 header.b=eoVHwRw9; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b="b 0hMZuA"; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677411858; 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:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=J/jThk0rByFBUAxkoNDi0872WXkWK2MzBC/wCr5hLjo=; b=EjJwXprywDQKYhT2ClSGpKHUXwjTNRGKEMh1iGWX2nMKVCUmrBLbjBpoeUuHEtleO1GTA7 SICd1QsBoa2GWfwNIu3TIkILQYr+i5e/PQ4PdD6qghfDW7zLgk92bkdpr1pdAPyNlgv1OT G18KT/6L4larsk8D5D28CfvqXGvfGEaNgH3eiEKK1MYt460KYK39p4WMwhycx525lyUfrv Dm83rnBzCL3WKjK8jhYa6PJeTzYbfx9wyDaT9BEj/zS7P6WdQbtGxYMS6mEfob56nDH/0R heuD+hMKFeMsblPZwMWchk5Xe7EVRFVnQup1HsZY4Rlvsx5eEI0WYIdhnWen4w== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWFRl-0005JS-1I; Sun, 26 Feb 2023 06:44:05 -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 1pWFRj-0005JA-E1 for bug-guix@gnu.org; Sun, 26 Feb 2023 06:44:03 -0500 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 1pWFRj-0007Br-5e for bug-guix@gnu.org; Sun, 26 Feb 2023 06:44:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pWFRj-0002WF-0u for bug-guix@gnu.org; Sun, 26 Feb 2023 06:44:03 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#61809: (gnu home services xdg): Wrong value for $XDG_STATE_HOME Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 26 Feb 2023 11:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61809 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 61809@debbugs.gnu.org X-Debbugs-Original-To: bug-guix Received: via spool by submit@debbugs.gnu.org id=B.16774118249627 (code B ref -1); Sun, 26 Feb 2023 11:44:02 +0000 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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: 4A97E9BD2 X-Spam-Score: -4.79 X-Migadu-Spam-Score: -4.79 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: kReghMoZkaIl --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--