Merge pull request #168 from wpferguson/compatibility_updates

Compatibility updates
This commit is contained in:
wpferguson
2019-02-24 17:28:56 -05:00
committed by GitHub
4 changed files with 135 additions and 115 deletions

View File

@@ -34,11 +34,12 @@ This script has been tested under Linux only
]]
local dt = require "darktable"
local du = require "lib/dtutils"
local df = require "lib/dtutils.file"
local dsys = require "lib/dtutils.system"
local gettext = dt.gettext
dt.configuration.check_version(...,{5,0,0})
du.check_min_api_version("5.0.0")
local MODULE_NAME = "video_ffmpeg"
@@ -278,7 +279,7 @@ if dt.configuration.running_os == "windows" then
elseif dt.configuration.running_os == "macos" then
defaultVideoDir = os.getenv("home")..PS.."Videos"
else
handle = io.popen("xdg-user-dir VIDEOS")
local handle = io.popen("xdg-user-dir VIDEOS")
defaultVideoDir = handle:read()
handle:close()
end
@@ -444,7 +445,7 @@ local function finalize_export(storage, images_table, extra_data)
end
end
df.rm(tmp_dir)
df.rmdir(tmp_dir)
end
dt.register_storage(