Am Samstag, den 03.12.2011, 16:52 +0200 schrieb Ran Benita:
> On Sat, Dec 03, 2011 at 02:32:19PM +0100, Thomas Meyer wrote:
> > 1.) Is there an option to set the WorkingDirectory automatically to the
> > users home? The environment variable "HOME" seems to get set for the
> > process. Or is there an option to set the WorkingDirectory based on the
> > user? default working directory seems to be "/".
> 
> I don't think there's a way to do it. I looked into either
>  - making the home directory the default working directory (for user's
>    systemd)
>  - adding a %~ format specifier
>  - or maybe both?
> A patch shouldn't be too hard, which do you think is best?

I think the home directory of the user should be the default working
directory for user units (convention over configuration). OTOH a %~
(home directory) or %u (already taken? - user name) format specifier
would be more flexible.

regards,
thomas


Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to