]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: Add %D specifier for $XDG_DATA_HOME
authorAdrian Vovk <adrianvovk@gmail.com>
Thu, 28 Dec 2023 23:12:06 +0000 (18:12 -0500)
committerLennart Poettering <lennart@poettering.net>
Fri, 5 Jan 2024 10:03:06 +0000 (11:03 +0100)
commitcc51085a416b623d891b60b2dc8e885f7e5beeec
treea0f146d5ae2c650869ff420c525a2db415bb956b
parent2743854540c2325ce025bdbdbab8c1a582c0ba0a
core: Add %D specifier for $XDG_DATA_HOME

We already have specifiers that resolve to $XDG_STATE_HOME, and
$XDG_CONFIG_HOME. $XDG_DATA_HOME is in a similar vein.

It allows units belonging to the user service manager to correctly look
into ~/.local/share. I imagine this would be most useful inside of
condition checks (i.e. only run a service on session startup if some
data is not found in ~/.local/share) or in the inotify monitoring of a
.path unit
man/systemd.unit.xml
src/core/unit-printf.c