Skip to content

Commit 6bf43e4

Browse files
authored
Merge pull request darktable-org#696 from lefth/fix-home-path
Fix the path to the user directory on Windows preventing crash on startup
2 parents b24dd18 + 7748ed1 commit 6bf43e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/dtutils/string.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ local PLACEHOLDERS = {"ROLL.NAME",
637637

638638
local PS = dt.configuration.running_os == "windows" and "\\" or "/"
639639
local USER = os.getenv("USERNAME")
640-
local HOME = dt.configuration.running_os == "windows" and os.getenv("HOMEPATH") or os.getenv("HOME")
640+
local HOME = dt.configuration.running_os == "windows" and os.getenv("USERPROFILE") or os.getenv("HOME")
641641
local PICTURES = HOME .. PS .. (dt.configuration.running_os == "windows" and "My Pictures" or "Pictures")
642642
local DESKTOP = HOME .. PS .. "Desktop"
643643

0 commit comments

Comments
 (0)