Bug 431013 - Not all databases will be saved when using the --database-directory option
Summary: Not all databases will be saved when using the --database-directory option
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Maintenance-Database (show other bugs)
Version: 7.1.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-31 16:56 UTC by Derek Christ
Modified: 2021-01-01 12:06 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.2.0
Sentry Crash Report:


Attachments
Logs (135.31 KB, text/plain)
2021-01-01 11:35 UTC, Derek Christ
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Derek Christ 2020-12-31 16:56:15 UTC
SUMMARY
I have multiple collections of photos that I want to completeley seperate from antother. That's why I want also to separate Digikam databases for these colletions. So I use the "digikam --database-directory ." command to create "local" databases which can also be shared over multiple computers since the photo collections are on a external drive.
My experience is that the "digikam4.db" file will successfully be created and used but the 3 missing database files "recognition.db" "similarity.db" and "thumbnails-digikam.db" will not. They will only be created when I don't use the --database-directory option, but that's not an option.

STEPS TO REPRODUCE
1. Create new directory with pictures
2. Start digikam there with "digikam --database-directory ."
3. "digikam4.db" will be created but not the 3 missing databases

OBSERVED RESULT
Only "digikam4.db"

EXPECTED RESULT
"digikam4.db" "recognition.db" "similarity.db" and "thumbnails-digikam.db"

Operating System: openSUSE Tumbleweed 20201229
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2
Kernel Version: 5.10.1-1-default
OS Type: 64-bit
Comment 1 Maik Qualmann 2020-12-31 17:52:56 UTC
I cannot reproduce the problem. All databases are created in the location specified by the parameter "--database-directory". Activate the debug output as described here: https://www.digikam.org/contribute/ and give us the full log from the start including the digiKam start line.

Maik
Comment 2 Derek Christ 2021-01-01 11:35:16 UTC
Created attachment 134433 [details]
Logs

Hello Maik, thank you for the fast reply and happy new year!

It seems like specifying "--database-directory" works flawlessly when using an absolute path but only creates "digikam4.db" when using relative paths. In my case I always referenced the current directory with the "."

I uploaded my logs into the attachment.
Comment 3 Maik Qualmann 2021-01-01 12:06:05 UTC
Git commit 5d8830b2b7bfb2bae51fc31363a5ef9b7149f4e8 by Maik Qualmann.
Committed on 01/01/2021 at 12:05.
Pushed by mqualmann into branch 'master'.

get absolute Path from the database-directory parameter
FIXED-IN: 7.2.0

M  +2    -1    NEWS
M  +1    -1    core/app/main/main.cpp

https://invent.kde.org/graphics/digikam/commit/5d8830b2b7bfb2bae51fc31363a5ef9b7149f4e8