Skip to content

Commit ee32ec2

Browse files
committed
data/luarc - added check to make sure darktable wasn't started
headless because starting the scripts when darktable is headless results in a hang.
1 parent 710d9d9 commit ee32ec2

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

data/luarc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ ipairs = function(t)
2020
end
2121
end
2222

23-
require "tools/script_manager"
23+
local dt = require "darktable"
24+
25+
-- make sure we don't hang darktable when starting the scripts
26+
27+
if dt.has_gui then
28+
require "tools/script_manager"
29+
end
2430

2531
-- vim: shiftwidth=2 expandtab tabstop=2 cindent syntax=lua

0 commit comments

Comments
 (0)