> On 8. Jun 2017, at 23:16, Holger Freyther <
[hidden email]> wrote:
>
> Hey Juraj!
Hey!
this will most likely block more people trying to deploy a headless Pharo6 image but I am not so sure how to properly fix it.
> $ unset HOME
> $ pharo ...
> Error: Can't find the requested origin
...
> UnixResolver(PlatformResolver)>>directoryFromEnvVariableNamed:
$HOME is not set so cantFindOriginError will be executed.
> UnixResolver>>home
> [ self home / '.config' ] in UnixResolver>>preferences in Block: [ self home / '.config' ]
XDG_CONFIG_DIR can not be found and then "self home" will be executed...
> FileLocator(AbstractFileReference)>>exists
(FileLocator preferences / '.config' / ...) resolve exists
a.) Behave like unix and resolve $HOME to ''
$ unset HOME
$ echo $HOME/.config
/.config
self home / '.config' => '/.config'
b.) FileLocator>>#exists
If something can not be resolved, one can argue that it doesn't exist? So I wonder if the exception should be catched and false be returned?
c.) ???
I don't see an obvious/good approach. Do you?
holger