Either per user tmpfiles support, or a rule that glob all users would be nice. I currently use: tchet@antec:~$ cat /etc/tmpfiles.d/okular.conf #Type Path Mode UID GID Age Argument d /home/tchet/.kde/share/apps/okular/docdata/ 0755 tchet tchet 3w d /home/melanie/.kde/share/apps/okular/docdata/ 0755 melanie melanie 3w d /home/julie/.kde/share/apps/okular/docdata/ 0755 julie julie 3w I could use (or this could be shipped by Okular for example): #Type Path Mode UID GID Age Argument d /home/%all/.kde/share/apps/okular/docdata/ 0755 tchet tchet 3w or /home/tchet/$something: #Type Path Mode UID GID Age Argument d /home/tchet/.kde/share/apps/okular/docdata/ 0755 tchet tchet 3w
Would a per-user service running in systemd --user mode work for you?
That would be nice ! If if use as a reference systemd.unit(5) ; this would let user install files in these 2 folders: $XDG_CONFIG_HOME/tmpfiles.d/user/*.conf aka. $HOME/.config/tmpfiles.d/user/*.conf $XDG_DATA_HOME/tmpfiles.d/user/*.conf aka $HOME/.local/share/tmpfiles.d/user/*.conf I'll let you choose which one is best.
I am pretty sure the per-system tmpfiles should not be used to clean up stuff in $HOME. If we want to support that, then tmpfiles should be run in user-context instead, as proposed by comment #1.
A similar RFE has been requested here: https://github.com/systemd/systemd/issues/2208 Let's close this instance.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.