When images are imported from the command line at darktable startup Lua doesn't initialize quick enough to capture import events so on a multi image import the first 5 - 10 images may not be recognized.
The culprit is script_manager and the fact that it doesn't (re)start running scripts until the GUI initializes.
A possible work around that has been tested is adding a post-import-image event "buffer" into data/luarc to capture an import from the command line and make the image list available to scripts starting up and then clear the"buffer" after script_manager is fully initialized.
The best fix is to rework the way that script_manager starts scripts.
When images are imported from the command line at darktable startup Lua doesn't initialize quick enough to capture import events so on a multi image import the first 5 - 10 images may not be recognized.
The culprit is script_manager and the fact that it doesn't (re)start running scripts until the GUI initializes.
A possible work around that has been tested is adding a post-import-image event "buffer" into data/luarc to capture an import from the command line and make the image list available to scripts starting up and then clear the"buffer" after script_manager is fully initialized.
The best fix is to rework the way that script_manager starts scripts.