Bug 88873 - RFE: tmpfiles: per user support
Summary: RFE: tmpfiles: per user support
Status: RESOLVED MOVED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium enhancement
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-30 04:45 UTC by Alexandre Detiste
Modified: 2017-10-27 18:12 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Alexandre Detiste 2015-01-30 04:45:40 UTC
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
Comment 1 Zbigniew Jedrzejewski-Szmek 2015-01-30 12:21:26 UTC
Would a per-user service running in systemd --user mode work for you?
Comment 2 Alexandre Detiste 2015-01-30 13:27:34 UTC
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.
Comment 3 Lennart Poettering 2015-02-02 19:48:50 UTC
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.
Comment 4 Lennart Poettering 2017-10-27 18:12:29 UTC
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.