Bug 441353

Summary: database rescan command-line option?
Product: [Applications] digikam Reporter: Johannes Berg <johannes>
Component: Maintenance-DatabaseAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: wishlist CC: metzpinguin
Priority: NOR    
Version: 7.1.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Johannes Berg 2021-08-22 10:55:07 UTC
I've got some non-digikam "import-like" workflow, and for that it'd be nice to have a way to force an album rescan (like digikam does after startup) from the command-line, exiting when completed.

Any chance of such a thing getting accepted? Unless it's super complicated due to some structure (or maybe because digikam simply doesn't have a way of running without UI?), I'd take a stab myself at implementing it.
Comment 1 Maik Qualmann 2021-08-22 11:10:17 UTC

*** This bug has been marked as a duplicate of bug 254099 ***
Comment 2 Maik Qualmann 2021-08-22 11:13:52 UTC
I suspect that the scan at the start of digKam takes too long that you therefore want to have a command line option. We have significantly accelerated the scan at the start in digiKam-7.4.0 (git/master), see Bug 405235

Maik
Comment 3 Johannes Berg 2021-08-22 11:20:57 UTC
Oops, thanks for the duplicate, I was thinking of rescan only.

It's not (just) about the duration of the scan - I'm also doing some database manipulations in my scripting (adding a tag to understand when I imported a given picture), and I didn't dare insert the new files into the database myself, so currently I'm manually starting digikam while the script waits for user input.