I see people talking about lua scripts that perform certain tasks, but I
don’t know how to install them, how to use them, if I can use them with the custom version of
DT from the Debian repos or if anything else is needed… Maybe it is
explained somewhere but, up to now, I haven’t found any info on the
subject (That is , how to install them and run them). Could someone give any advise or any link to a “how to”?
In general, you don’t need something special as long as you are relying solely on the internal lua functionality. Some of the available scripts are utilizing external programs, which of course should be available on your system and installed in a way that dt/lua will find them.
(Edit: It could be that the custom version you are referring to is built without lua support, but this is unlikely.)
The more recent versions of dt have lua support (IIRC starting with 1.4), but I recommend a recent version from the 2.0 series (2.0.5 is the most recent version), since lua support improved over time and versions.
Check the following:
In your /home/YourUserName/.config/darktable folder, you are supposed to have a lua folder and a luarc text file.
The luarc text file ought to contain the line require "examples/hello_world"
The lua folder has to contain another folder, named examples
And the examples folder, i.e. /home/YourUserName/.config/darktable/lua/examples/ is to contain the text file hello_world.lua
That file contains these three lines:
local dt = require "darktable"
dt.configuration.check_version(...,{2,0,0},{3,0,0})
dt.print("hello, world")
So, whenever you start Darktable, the words hello, world ought to be shown on the monitor.
This one works well, but if I install the whole bunch of scripts, for
example, appears a new tab in “preferences”, but there is no more than
the list of scripts, with no option to choose or change anything. I
haven’t tried all of them, but the gimp and hugin ones dont seem to do
anything…
But now I know how to install them and ¡that’s a start!
BTW it would be good to know which darktable version you are using. As the lua part is relatively new, most scripts require a recent darktable version.
The gimp and hugin scripts are written for the latest git version and not the stable version.
If you use the stable dt version you need to to require “yield.lua” before “gimp.lua” in your $HOME/.config/darktable/luarc.
The “yield.lua” makes the scripts compatible with the stable dt version.
I didn’t see your answer before now, but I figured it out a week ago (see post below)
slight_smile:
But now that I’ve got the attention from someone who knows Darktable, maybe you know the answer to this ?
I’m trying to get rid of Darktables dead thumbnails, and it seems like the solution is this:
"you may occasionally run the script purge_non_existing_images.sh from darktable’s toolset to clean-up your database. "
But what isn’t explained where to use the script ?
In terminal ?
and where is mentioned tool-set ?
You can specify darktable’s datadir to be wherever you want it with the --datadir <data directory> switch at the command line. Or you can add that to a .desktop file.