From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id iDC2DgS8L2QkYAAASxT56A (envelope-from ) for ; Fri, 07 Apr 2023 08:45:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YBHlDQS8L2SQ+QAAG6o9tA (envelope-from ) for ; Fri, 07 Apr 2023 08:45:24 +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 AEC5A2EF47 for ; Fri, 7 Apr 2023 08:45:23 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pkfqK-0004Dq-Qe; Fri, 07 Apr 2023 02:45:04 -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 1pkfqI-0004Dd-J3 for guix-patches@gnu.org; Fri, 07 Apr 2023 02:45:02 -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 1pkfqI-0004NP-7R for guix-patches@gnu.org; Fri, 07 Apr 2023 02:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pkfqH-00076y-PH for guix-patches@gnu.org; Fri, 07 Apr 2023 02:45:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#61982] [PATCH 1/2] home: services: xdg-base-directories: Set correct value for XDG_STATE_HOME. Resent-From: Andrew Tropin Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 07 Apr 2023 06:45: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: Bruno Victal , 61982@debbugs.gnu.org Cc: Bruno Victal , philip@philipmcgrath.com Received: via spool by 61982-submit@debbugs.gnu.org id=B61982.168084985727266 (code B ref 61982); Fri, 07 Apr 2023 06:45:01 +0000 Received: (at 61982) by debbugs.gnu.org; 7 Apr 2023 06:44:17 +0000 Received: from localhost ([127.0.0.1]:55599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkfpY-00075h-HF for submit@debbugs.gnu.org; Fri, 07 Apr 2023 02:44:16 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:41041) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkfpU-00075Q-9Z for 61982@debbugs.gnu.org; Fri, 07 Apr 2023 02:44:15 -0400 Received: (Authenticated sender: andrew@trop.in) by mail.gandi.net (Postfix) with ESMTPSA id E3A4B100010; Fri, 7 Apr 2023 06:44:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1; t=1680849845; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=v7kZt7d9260Bmas8B19OmxaHTOxWlUFM+3hjddK/zSo=; b=XnZ659cHW+rKCkcURu28wHvDsmad+pkc+Tisw2IAQozJLbrPwqqF6eta3fzL+dmSbLQ28o WVE28TKTf6yhelCN4A9OTzJ+0eU015dZB+ig9VrtolV6zP+n+NMZbfENWeeSTkOJxKCO5u LSr5Hq06r2uc7MpuJ3xFwKtKOyTnPTtI+1Xmd1A4uLiEQ+lgNwm1Ty71YyM8QAvjEpdIaV sokAyba63/8F1ltkxXNstVtZGRcYFYhK2sgFt8AP1WWyojkqFlHtWM2Vave7vgVVjbCnz1 bhK9h4fGIcKq9Of4l4ZKZ9etFHLDfc5knO4veLRzS8hImyILJvpJhq7wYGP7fg== From: Andrew Tropin In-Reply-To: <3005f8a58ec5afc447f2baf40958956bd0d16099.1678029530.git.mirai@makinata.eu> References: <3005f8a58ec5afc447f2baf40958956bd0d16099.1678029530.git.mirai@makinata.eu> Date: Fri, 07 Apr 2023 10:43:50 +0400 Message-ID: <87lej4w5sp.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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-Seal: i=1; s=key1; d=yhetil.org; t=1680849924; a=rsa-sha256; cv=none; b=SlCqWEaNw3PK7qprkJQCJb1aAsuVwWQSaIgiFINE1o1rOwdr6hBB6r1cX92S12M+WdmENv alxt/c+tWA5n1VcOU2A0iK//k/+mBVFu+QKQGIrgR6F0dZo28uhiiaOJnjESUwiIj1miar kdDmQDr0zeJMHnnxttiBBbhUj8wav0Z3sO56140aP54bxDLPBO41Xx3bPan7CgE/aY6gBK f4tLhjD75YWdgBUAln17QJat6WqrmpN5xdOvMLH2oU7kfkFy4DQD6RMWjCoZlOwkG7gEc9 WA9JwRJtdcx8zEEvkj2ghQve6lXPg3vRcYwGkf3gmoZz0K8Tcjj9saxdAwscCw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=gm1 header.b=XnZ659cH; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680849924; 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: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=v7kZt7d9260Bmas8B19OmxaHTOxWlUFM+3hjddK/zSo=; b=EGJMLg4cXaqpjBmCHK9Y9MTorMf5y8B9hzC5r3ic/OuWqoVp/OPK5tE+VWDAbMMx93DQ+q GvvFTqrFPMJAfX6FAtKsfSxjNaa2lSt6qG7WOoAoedKtdPbrd230K6jnOEsiaebIr1TjZC mI5WsfXODtEhVPYHDPulYs9vFssiWiqChrgLv85WHFvtjdi7g6bJJfQKpgx1+YJYEpZTVR oAzzz8JxrsDDLDbSrVk6tEV9Ub+ZSB1a6FnmtvUMkXASv07LRMSgnMPotAwqmsdOqyNL85 IuPFI1ZbP+c93nTMqEq/SKIWdU9F8qcFbi5geATsZTEr13u6c1QU6VXoKfDpHQ== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=gm1 header.b=XnZ659cH; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -2.72 X-Spam-Score: -2.72 X-Migadu-Queue-Id: AEC5A2EF47 X-TUID: j6ZqhOZYDa5x --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2023-03-05 15:19, Bruno Victal wrote: > XDG Base Directory Specification 0.8 officially introduces the > XDG_STATE_HOME environment variable. > > Fixes . > > * gnu/home/services/xdg.scm > (home-xdg-base-directories-configuration)[state-home]: Set default value = according to spec. > Update field documentation. > (home-xdg-base-directories-service-type): Update service description. > --- > gnu/home/services/xdg.scm | 22 +++++++++++----------- > 1 file changed, 11 insertions(+), 11 deletions(-) > > diff --git a/gnu/home/services/xdg.scm b/gnu/home/services/xdg.scm > index 3007493f85..ac557b4c3d 100644 > --- a/gnu/home/services/xdg.scm > +++ b/gnu/home/services/xdg.scm > @@ -104,11 +104,11 @@ (define-configuration home-xdg-base-directories-con= figuration > Specification, but helps to make implementation of home services more > consistent.") > (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.")) > + (path "$HOME/.local/state") Ironically enough, it was my first idea for default value :) > + "Base directory for programs to store state data that should persist > +between (application) restarts, such as logs, but are not important or > +portable enough to the user to warrant storing them in > +@env{XDG_DATA_HOME}.")) >=20=20 > (define (home-xdg-base-directories-environment-variables-service config) > (map > @@ -158,12 +158,12 @@ (define home-xdg-base-directories-service-type > (compose identity) > (extend last-extension-or-cfg) > (description "Configure XDG base directories. This > -service introduces two additional variables @env{XDG_STATE_HOME}, > -@env{XDG_LOG_HOME}. They are not a part of XDG specification, at > -least yet, but are convenient to have, it improves the consistency > -between different home services. The services of this service-type is > -instantiated by default, to provide non-default value, extend the > -service-type (using @code{simple-service} for example)."))) > +service introduces an additional @env{XDG_LOG_HOME} variable. It's not > +a part of XDG specification, at least yet, but are convenient to have, > +it improves the consistency between different home services. The > +services of this service-type is instantiated by default, to provide > +non-default value, extend the service-type (using @code{simple-service} > +for example)."))) >=20=20 > (define (generate-home-xdg-base-directories-documentation) > (generate-documentation > > base-commit: d92ec2f2812c76b23aab778e26708cf353542ae9 Applied and pushed the first patch as=20 5c893787be78a79433fe1343f5b70cd647e8f667 Will think about the second one a little more and reply on that later. =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmQvu6YACgkQIgjSCVjB 3rBkxg//bw2Snxad+y2klyFnHcvEBTknll1fF0v4jpT2Ex4IBZsnRhgAnbWDfIBV xG7DwYC+uAr443rsj4joFpapMJK2d8OJBBff45I4u3KYFZ9Z/bLfurTS7cX8aPIC Kcx5Wwvuf1R7ZWk+bRhHcQ75DmqAmBlLhupcBAluXgQ2kA+JhfyHnbv2zBAO9P8d TFYzu4LunHIY8ZTrsvwJsUg7J/dIDN0dI8YQMLzalHivXtFlLkUBbiJfgnDnu+dv YGUFGBqQmBpHq+5zcOqR1wnJhvqPzDuK15r160fpnrxp2JGe6m4qQSCeW/VxsJF2 PvXX+fyTwHT1dLv+0DCOzUJofgTMZ/7C/yDr3xKd+a1GHXlRHQowzfnsF33+xiuq fJHdQ29FH0F3P5WfUQdylwqsbuzaZpTVmAcY7xV3YVzyXqkNmSwia6rdR2z5w87+ R6Jq4P01YXiG6i+hi5pZE0bZMSGHtk04sQYm7arI70WZmMuhtLHqZa2Z3F56u3/Q fS2u6KrO0IgsD6d5lebO0LN1Dg91xSJ7Dao5gnAt24vUVbSfYY6vBgiNy4fKUlpg NTpb0IPitGmQ3x7aKfUHqTJby/bIqqCRSkwTBVh1cPnhim5cXbSsGZNS//9Krxfb LODE2N/dfvK6b95CL9Q/4HTxrEyY8iDDnjk51ovklilVzzyMNo8= =LYE/ -----END PGP SIGNATURE----- --=-=-=--