[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
133/244: home: xdg-base-directories: Set correct value for XDG_STATE_HOM
From: |
guix-commits |
Subject: |
133/244: home: xdg-base-directories: Set correct value for XDG_STATE_HOME. |
Date: |
Wed, 12 Apr 2023 08:48:56 -0400 (EDT) |
apteryx pushed a commit to branch staging
in repository guix.
commit a5b5348235d6f5ab7c06052ede6513e804639b63
Author: Bruno Victal <mirai@makinata.eu>
AuthorDate: Sun Mar 5 15:19:13 2023 +0000
home: xdg-base-directories: Set correct value for XDG_STATE_HOME.
XDG Base Directory Specification 0.8 officially introduces the
XDG_STATE_HOME environment variable.
Fixes <https://issues.guix.gnu.org/issue/61809>.
* 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.
Signed-off-by: Andrew Tropin <andrew@trop.in>
---
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 @@ like sockets.")
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")
+ "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}."))
(define (home-xdg-base-directories-environment-variables-service config)
(map
@@ -158,12 +158,12 @@ are no extensions use configuration instead."
(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).")))
(define (generate-home-xdg-base-directories-documentation)
(generate-documentation
- 108/244: gnu: r-loo: Update to 2.6.0., (continued)
- 108/244: gnu: r-loo: Update to 2.6.0., guix-commits, 2023/04/12
- 107/244: gnu: r-openmx: Update to 2.21.8., guix-commits, 2023/04/12
- 111/244: gnu: r-tune: Update to 1.1.0., guix-commits, 2023/04/12
- 115/244: gnu: r-spacetime: Update to 1.3-0., guix-commits, 2023/04/12
- 119/244: gnu: r-ggplot2: Update to 3.4.2., guix-commits, 2023/04/12
- 120/244: gnu: r-rcpparmadillo: Update to 0.12.2.0.0., guix-commits, 2023/04/12
- 123/244: gnu: r-ranger: Update to 0.15.1., guix-commits, 2023/04/12
- 128/244: gnu: rizin: Update to 0.5.2., guix-commits, 2023/04/12
- 124/244: gnu: pounce: Update to 3.1., guix-commits, 2023/04/12
- 131/244: gnu: linux-libre: Update to 6.2.10., guix-commits, 2023/04/12
- 133/244: home: xdg-base-directories: Set correct value for XDG_STATE_HOME.,
guix-commits <=
- 130/244: news: Add entry for 'guix shell --container --nesting'., guix-commits, 2023/04/12
- 132/244: gnu: linux-libre 6.1: Update to 6.1.23., guix-commits, 2023/04/12
- 148/244: services: desktop: Remove 'gnome-desktop-service' procedure., guix-commits, 2023/04/12
- 146/244: services: base: Remove 'console-font-service' procedure., guix-commits, 2023/04/12
- 144/244: services: sddm: Remove 'sddm-service' procedure., guix-commits, 2023/04/12
- 149/244: services: desktop: Remove 'mate-desktop-service' procedure., guix-commits, 2023/04/12
- 147/244: services: guix-publish: Remove 'compression-level' field., guix-commits, 2023/04/12
- 152/244: gnu: Add libpanel., guix-commits, 2023/04/12
- 212/244: gnu: open-adventure: Update to 1.15., guix-commits, 2023/04/12
- 232/244: status: Guard against a numerical overflow condition., guix-commits, 2023/04/12