1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

home: xdg: Fix compilation warning.

* gnu/home/services/xdg.scm (home-xdg-base-directories-configuration):
Specify field serializer explicitly.

Change-Id: I1b178952e3eb95d3faea38f7cf7a782bc73c0ea5
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Sergey Trofimov
2026-01-24 18:42:23 +01:00
committed by Ludovic Courtès
parent dbbdc41b0c
commit 321e05d0f6

View File

@@ -108,10 +108,11 @@ like sockets.")
@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."
(lambda (field-name val)
(when (maybe-value-set? val)
(warn-about-deprecation field-name #f #:replacement 'state-home))
(serialize-path field-name val)))
(serializer
(lambda (field-name val)
(when (maybe-value-set? val)
(warn-about-deprecation field-name #f #:replacement 'state-home))
(serialize-path field-name val))))
(state-home
(path "$HOME/.local/state")
"Base directory for programs to store state data that should persist