fix HOME environment variable name for macOS

This commit is contained in:
supertobi
2023-02-27 09:29:16 +01:00
committed by GitHub
parent d556f48168
commit b883714192

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()