Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursive import of new images using the command line does not work anymore #17871

Open
scorpi11 opened this issue Nov 20, 2024 · 3 comments
Open
Labels
scope: DAM managing files, collections, archiving, metadata, etc.

Comments

@scorpi11
Copy link

scorpi11 commented Nov 20, 2024

Describe the bug

I used to start darktable on the command line with a directory name to import new images in subdirectories. This was a simple way to import all new images in the directory hierarchy of my library.

Now darktable ignores new images in subdirectories.

4.8.0 is fine, 4.8.1 had a crash issue (see #17233). I backported a fix for the crash to 4.8.1, but the recursive import using the command line is still broken. Now I tried git master (d267260) and have the same issue.

Steps to reproduce

  1. mkdir -p foo/bar
  2. copy some images to bar directory, so that there is foo/bar/<images>
  3. In a terminal, invoke the command darktable foo
  4. check if the images in foo/bar are imported (they are not)
  5. In a terminal, invoke the command darktable foo/bar
  6. check if the images in foo/bar are imported (they are now imported)

Up to 4.8.0, darktable imported the new images in foo/bar in step 3. With git master, this does not work anymore.

Expected behavior

darktable should import the new images in foo/bar in step 3.

Logfile | Screenshot | Screencast

No response

Commit

No response

Where did you obtain darktable from?

downloaded from www.darktable.org

darktable version

git master d267260

What OS are you using?

Linux

What is the version of your OS?

Debian unstable

Describe your system?

Debian unstable, darktable from git master at commit d267260

Are you using OpenCL GPU in darktable?

Yes

If yes, what is the GPU card and driver?

RX5600 XT

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

No response

@ralfbrown
Copy link
Collaborator

Hmm, commandline import has never been recursive for me, all the way back to 1.4.... But I also never do recursive imports from the GUI.

I would suggest checking the value of ui_last/import_recursive in darktablerc. If it's FALSE, try changing it to TRUE and see if that gives you a recursive import. A quick scan of the code indicates that commandline import obeys that setting.

@ralfbrown ralfbrown added the scope: DAM managing files, collections, archiving, metadata, etc. label Nov 20, 2024
@scorpi11
Copy link
Author

scorpi11 commented Nov 21, 2024

$ grep ui_last/import_recursive .config/darktable/darktablerc
ui_last/import_recursive=TRUE
$

As mentioned above, it worked for me up to 4.8.0.

@ralfbrown
Copy link
Collaborator

Try clicking on the reset button for the "collection filters" module after a commandline import. It has a bug where it can cause images not to show on the lighttable even though they have been successfully imported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: DAM managing files, collections, archiving, metadata, etc.
Projects
None yet
Development

No branches or pull requests

2 participants