From 4ae4164a85eb1c1e8c6a7cb726027127481f2769 Mon Sep 17 00:00:00 2001 From: nomennescio Date: Wed, 13 Jul 2022 13:32:14 +0200 Subject: [PATCH] On Windows support HOME environment variable HOMEPATH and HOMEDRIVE might be set automatically, and HOME can be used to override. Also HOME is used by several ported commandline utilities to find configuration files. If the user has set it, he clearly prefers it. --- basis/io/files/windows/windows.factor | 1 + 1 file changed, 1 insertion(+) diff --git a/basis/io/files/windows/windows.factor b/basis/io/files/windows/windows.factor index 233a9119ed..a708dfee81 100644 --- a/basis/io/files/windows/windows.factor +++ b/basis/io/files/windows/windows.factor @@ -379,6 +379,7 @@ M: windows open-append M: windows home { + [ "HOME" os-env ] [ "HOMEDRIVE" os-env "HOMEPATH" os-env append-path ] [ "USERPROFILE" os-env ] [ my-documents ] -- 2.34.1