Starting darktable and importing specified directory

I am currently trying out variants on my workflow.

I’d like to start darktable with --library :memory: to get a clean environment. This works so far nicely.
Problem is, I’m giving a directory as command line parameter and I would like darktable to display the images in this specified folder in the lightroom view .

I didn’t find a special command line parameter to accomplish this, but I suspect it might be possible via the --lua argument (in combination with the :link:darktable.database.import function). I just couldn’t find a way to get the folder path (which I set as command line parameter).

Maybe someone can help out? Thanks in advance.

According to https://docs.darktable.org/usermanual/4.2/en/special-topics/program-invocation/darktable/, you should be able to specify a directory, there’s no special parameter for that, so e.g.
darktable ~/Pictures --library :memory:
should start darktable with the images in ~/Pictures shown in the lighttable.You may have to use quotes around the directory name if it contains spaces…

Otherwise, can you show us the command line you want to use?

1 Like

You are right, darktable does exactly what I need. That was an easy fix.

I somehow shoot myself in the foot, having a filter that hid the images of the folder… so it looked like the lightroom was empty.

Thank you for bringing me back on track :+1: