Component
systemd-tmpfiles
Is your feature request related to a problem? Please describe
I tried to configure tmpfiles.d cleanup of my downloads directory XDG_DOWNLOAD_DIR.
There is a specifier for user home directory (%h) but documentation says explicitly that "The file system path supports simple specifier expansion [...]. The path (after expansion) must be absolute."
Or XDG_DOWNLOAD_DIR is subject to localization or modification so it's path may change from machine to machine.
Describe the solution you'd like
As with XDG base directories, support specification of XDG user directories with a specifier expansion to SD_PATH_USER_DOWNLOAD for instance.
This could provide a portable way to clean XDG_DOWNLOAD_DIR with age consideration.
Describe alternatives you've considered
I see that an "administrator mode" equivalent expansion might be mandatory. A fallback to /tmp might maybe make sense (for XDG_DOWNLOAD_DIR at least).
The systemd version you checked that didn't have the feature you are asking for
No response
Component
systemd-tmpfiles
Is your feature request related to a problem? Please describe
I tried to configure tmpfiles.d cleanup of my downloads directory XDG_DOWNLOAD_DIR.
There is a specifier for user home directory (%h) but documentation says explicitly that "The file system path supports simple specifier expansion [...]. The path (after expansion) must be absolute."
Or XDG_DOWNLOAD_DIR is subject to localization or modification so it's path may change from machine to machine.
Describe the solution you'd like
As with XDG base directories, support specification of XDG user directories with a specifier expansion to SD_PATH_USER_DOWNLOAD for instance.
This could provide a portable way to clean XDG_DOWNLOAD_DIR with age consideration.
Describe alternatives you've considered
I see that an "administrator mode" equivalent expansion might be mandatory. A fallback to /tmp might maybe make sense (for XDG_DOWNLOAD_DIR at least).
The systemd version you checked that didn't have the feature you are asking for
No response