Skip to content

Commit

Permalink
iccstore: Allow loading profiles from user-writable configuration dir…
Browse files Browse the repository at this point in the history
…ectory

In addition to bundled profiles and the system ICC profile store, load profiles from a user-writable/user-specific directory

On Linux, this is $HOME/.config/RawTherapee/iccprofiles/output - corresponding to "input" being already supported

Partial fix for part of Beep6581#6644
  • Loading branch information
Entropy512 committed Dec 15, 2022
1 parent dcd2d3d commit 09e9884
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rtengine/iccstore.cc
Expand Up @@ -454,6 +454,8 @@ class rtengine::ICCStore::Implementation
if (loadAll) {
loadProfiles(profilesDir, &fileProfiles, &fileProfileContents, nullptr, false);
loadProfiles(userICCDir, &fileProfiles, &fileProfileContents, nullptr, false);
Glib::ustring user_output_icc_dir = Glib::build_filename(options.rtdir, "iccprofiles", "output");
loadProfiles(user_output_icc_dir, &fileProfiles, &fileProfileContents, nullptr, false);
}

// Input profiles
Expand Down

0 comments on commit 09e9884

Please sign in to comment.