Merge pull request #404 from darktable-org/macOS_HOME

Mac os home
This commit is contained in:
supertobi
2023-02-27 09:30:44 +01:00
committed by GitHub

View File

@@ -285,7 +285,7 @@ local defaultVideoDir = ''
if dt.configuration.running_os == "windows" then
defaultVideoDir = os.getenv("USERPROFILE")..PS .."videos"
elseif dt.configuration.running_os == "macos" then
defaultVideoDir = os.getenv("home")..PS.."Videos"
defaultVideoDir = os.getenv("HOME")..PS.."Videos"
else
local handle = io.popen("xdg-user-dir VIDEOS")
defaultVideoDir = handle:read()