fix HOME environment variable name

This commit is contained in:
Romuald du Song
2023-02-25 17:41:45 +01:00
parent 42a194b3d7
commit 9b31f18470

View File

@@ -334,7 +334,7 @@ local defaultDir = ''
if dt.configuration.running_os == "windows" then
defaultDir = os.getenv("USERPROFILE")
elseif dt.configuration.running_os == "macos" then
defaultDir = os.getenv("home")
defaultDir = os.getenv("HOME")
else
local handle = io.popen("xdg-user-dir DESKTOP")
defaultDir = handle:read()