Re: [Pharo-users] [Pharo-dev] Pharo6 server deployment and no home directory
> On 9. Jun 2017, at 13:26, Sven Van Caekenberghe wrote: Hey, > Why would $HOME not be set ? In this specific case runit doesn't export HOME when starting my service but looking at systemd and picking a random service like exim4.service I see: $ strings /proc/946/environ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin LANG=C _SYSTEMCTL_SKIP_REDIRECT=true PWD=/ I think it is safe to assume this applies to other services started by systemd as well. > And if it is not set / seems like a reasonable default. In Shell it would be "" but with >>resolveString: '' it seems to be / but that seems to be fair enough. E.g. as {home} / '.config' is used anyway. holger
Re: [Pharo-users] [Pharo-dev] Pharo6 server deployment and no home directory
Why would $HOME not be set ? And if it is not set / seems like a reasonable default. > On 9 Jun 2017, at 06:06, Holger Freyther wrote: > > >> On 9. Jun 2017, at 11:09, Holger Freyther wrote: >> >> > > >> a.) Behave like unix and resolve $HOME to '' >> >> $ unset HOME >> $ echo $HOME/.config >> /.config >> >> self home / '.config' => '/.config' > > > Implementing UnixResolver>>#home as > > home > ^ self directoryFromEnvVariableNamed: 'HOME' or: [self resolveString: > ''] > > will lead to something creating /.config/pharo (if possible). By itself this > change is not good enough but when adding --no-default-preferences. > > > Comments? Opinions? > > holger > > >