[systemd-devel] Proposal: extend support for user session unit features

Ran Benita ran234 at gmail.com
Tue Jul 10 05:32:14 PDT 2012


On Tue, Jul 10, 2012 at 05:00:43AM +0000, Kok, Auke-jan H wrote:
> So in short, I'd like to do both:
> 
> - have systemd chdir to $HOME if uid != 1
> 
> - extend the printf specifier list for user sessions with a specifer
> that can be used in various fields to refer to at minimum $HOME ("%h"
> ?) and possibly $UID ("%u") and $SHELL ("%s"), since these fields are
> part of the struct *passwd, and might be useful at some point.
> 
> Comments? I'll post a patch gladly to implement this.
> 

I think that's useful as well, and used it for a while. Also see
http://lists.freedesktop.org/archives/systemd-devel/2011-December/004076.html

Ran


More information about the systemd-devel mailing list