currently we install the gmic_cluts.gmz also into the gimp plugin directory next to the gimp plugin. but of course the plain gmic-qt does not look there. and the krita package will probably no look there either. I tested with strace and plain gmic-qt doesnt seems to search any system path for this file but directly goes to ~/.cache/gmic/
Wouldnt make more sense to have /usr/share/gmic/luts/gmic_cluts.gmz so all the different libgmic based tools have a shared copy? oh and maybe a cmdline switch to make gmic work fully offline.
from poking a little bit … the stdlib.gmic file would need to be patched to look in /usr/share/gmic/ as well as into the cache directory?
my end goal would be to ship all the files into a gmic-data subpackage that all filters work fully offline. (think laptop on train use case)
All those files are actually “G’MIC resources”, and the command input_cached is the one that manages the different folders that may contain thos resource files.
If needed, I may add usr/share/gmic/ to the list of searched folder. Anyway, no subdirectories please, because it would become complicated to manage if resource files are dispatched in different subfolders.
yeah … so if it finds files in /usr/share/gmic and i press “update filters” in gmic-qt… will it download to ~/.cache/gmic/ or try /usr/share/gmic?
The file https://gmic.eu/updateXXX.gmic (where XXX is the G’MIC version number) is downloaded, decompressed and stored in $HOME/.config/gmic/updateXXX.gmic.
Then, if you try a filter that requires resource files, the filter will use the newly updated input_cached command, so will look into /usr/share/gmic/ to find these resource files.