@@ -104,7 +104,7 @@ local function create_kml_file(storage, image_table, extra_data)
104
104
-- Creates dir if not exsists
105
105
imageFoldername = " files/"
106
106
local mkdirCommand = " mkdir -p " .. exportDirectory .. " /" .. imageFoldername
107
- coroutine.yield (" run_command " , mkdirCommand )
107
+ coroutine.yield (" RUN_COMMAND " , mkdirCommand )
108
108
end
109
109
110
110
@@ -122,9 +122,9 @@ local function create_kml_file(storage, image_table, extra_data)
122
122
123
123
local concertToThumbCommand = " convert -size 96x96 " .. image .. " -resize 92x92 -mattecolor \" #FFFFFF\" -frame 2x2 +profile \" *\" " .. exportDirectory .. " /" .. imageFoldername .. " thumb_" .. filename .. " .jpg"
124
124
-- USE coroutine.yield. It does not block the UI
125
- coroutine.yield (" run_command " , concertToThumbCommand )
125
+ coroutine.yield (" RUN_COMMAND " , concertToThumbCommand )
126
126
local concertCommand = " convert -size 438x438 " .. image .. " -resize 438x438 +profile \" *\" " .. exportDirectory .. " /" .. imageFoldername .. filename .. " .jpg"
127
- coroutine.yield (" run_command " , concertCommand )
127
+ coroutine.yield (" RUN_COMMAND " , concertCommand )
128
128
129
129
local pattern = " [/]?([^/]+)$"
130
130
filmName = string.match (_ .film .path , pattern )
@@ -222,7 +222,7 @@ local function create_kml_file(storage, image_table, extra_data)
222
222
local createKMZCommand = " zip --test --move --junk-paths "
223
223
createKMZCommand = createKMZCommand .. " \" " .. exportDirectory .. " /" .. exportKMZFilename .. " \" "
224
224
createKMZCommand = createKMZCommand .. " \" " .. dt .configuration .tmp_dir .. " /" .. exportKMLFilename .. " \" \" " .. dt .configuration .tmp_dir .. " /" .. imageFoldername .. " \" *"
225
- coroutine.yield (" run_command " , createKMZCommand )
225
+ coroutine.yield (" RUN_COMMAND " , createKMZCommand )
226
226
end
227
227
228
228
-- Open the file with the standard programm
@@ -234,7 +234,7 @@ local function create_kml_file(storage, image_table, extra_data)
234
234
else
235
235
kmlFileOpenCommand = " xdg-open " .. exportDirectory .. " /\" " .. exportKMLFilename .. " \" "
236
236
end
237
- coroutine.yield (" run_command " , kmlFileOpenCommand )
237
+ coroutine.yield (" RUN_COMMAND " , kmlFileOpenCommand )
238
238
end
239
239
240
240
@@ -253,4 +253,3 @@ dt.preferences.register("kml_export", "CreateKMZ", "bool", "KML export: Create K
253
253
254
254
-- Register
255
255
dt .register_storage (" kml_export" , " KML/KMZ Export" , nil , create_kml_file )
256
-
0 commit comments