Bug 514272 - Digikam very long at start
Summary: Digikam very long at start
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Setup-ColorManagement (other bugs)
Version First Reported In: 8.8.0
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-07 13:05 UTC by simpsonus
Modified: 2026-01-07 21:21 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 9.0.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description simpsonus 2026-01-07 13:05:45 UTC
After changing some preferences in ColorManagement with preferences panel, Digikam became very slow at launch, more than 1 minute to get ready.
I looked at the difference between old and new digikamrc preference file and here is the reason : 

The DefaultPath parameter in Color Management was set to / instead of empty.

Good start time:
[Color Management]
DefaultPath=

Long start time:
[Color Management]
DefaultPath=/

The bad thing is that I don't know how this parameter changed from empty to / I don't even see this parameter on the preferences panel.
If I set the parameter to empty in the digikamrc file, starting time is good.
Comment 1 caulier.gilles 2026-01-07 13:17:24 UTC
Ok I will take a look in a few day to patch the relevant code.

Gilles Caulier (who uses macOS too)
Comment 2 Maik Qualmann 2026-01-07 15:57:30 UTC
We recursively scan for color profiles in iccSettings::Private::scanDirectory(). If you select, for example, the root directory "/" in the settings, or drive "C:\" in Windows, then the entire hard drive is scanned. This takes forever. I think scanning only the selected directory should be sufficient, or limiting the search to subdirectories.

Maik
Comment 3 Maik Qualmann 2026-01-07 21:21:20 UTC
Git commit 1a07cc23b7865c846ac86787e281a0a5f6f983fe by Maik Qualmann.
Committed on 07/01/2026 at 21:20.
Pushed by mqualmann into branch 'master'.

limit search for color profiles to 2 subfolders in depth
FIXED-IN: 9.0.0

M  +1    -1    NEWS
M  +6    -0    core/libs/dimg/filters/icc/iccsettings_p.cpp
M  +2    -0    core/libs/dimg/filters/icc/iccsettings_p.h

https://invent.kde.org/graphics/digikam/-/commit/1a07cc23b7865c846ac86787e281a0a5f6f983fe