Skip to content

Commit 0337842

Browse files
committed
Update video.lua
Changed "run_command" to "RUN_COMMAND" to make the script compatible with newer darktable versions.
1 parent 3d0e536 commit 0337842

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

contrib/video.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,14 @@ local function create_video(storage, image_table, extra_data)
9090

9191
dt.print_error("this is the command: "..command)
9292
-- USE coroutine.yield. It does not block the UI
93-
coroutine.yield("run_command", command)
93+
coroutine.yield("RUN_COMMAND", command)
9494

9595
dt.print("Video created in "..exportDirectory)
9696

9797
if ( dt.preferences.read("video","OpenVideo","bool") == true ) then
9898
-- USE coroutine.yield. It does not block the UI
9999
local playVideoCommand = "xdg-open "..exportDirectory.."/"..exportFilename
100-
coroutine.yield("run_command", playVideoCommand)
100+
coroutine.yield("RUN_COMMAND", playVideoCommand)
101101
end
102102
end
103103

@@ -115,4 +115,3 @@ dt.preferences.register("video", "Codec", "enum", "Video exort: Codec","Video co
115115

116116
-- Register
117117
dt.register_storage("video", "Video Export", show_status, create_video)
118-

0 commit comments

Comments
 (0)