Bug 206426

Summary: Default ICC profile locations reads the same directory twice
Product: [Applications] digikam Reporter: Milan Knížek <knizek>
Component: ColorManagement-ProfilesAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.0.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 1.0.0
Sentry Crash Report:
Attachments: Screenshot of the paths found.

Description Milan Knížek 2009-09-05 20:43:46 UTC
Version:           digikam 1.0.0 beta5 (svn 1020214) (using KDE 4.2.4)
OS:                Linux
Installed from:    Compiled From Sources

digiKam searches installed ICC profiles in various directories and also shows, which folders are used for scanning.

On Ubuntu 9.04 amd64, it scans twice the same directory:

/usr/share//color/icc
/usr/share/color/icc

which results in each profile being displayed twice in the drop-down lists.
Comment 1 Milan Knížek 2009-09-05 20:44:46 UTC
Created attachment 36723 [details]
Screenshot of the paths found.
Comment 2 Marcel Wiesweg 2009-09-11 18:32:33 UTC
SVN commit 1022382 by mwiesweg:

Use QDir's canonicalPath() to filter out duplicate directories in color profiles search path

BUG: 206426

 M  +3 -1      NEWS  
 M  +12 -4     libs/dimg/filters/iccprofile.cpp  
 M  +1 -1      utilities/imageeditor/canvas/iccsettings.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1022382