Mercurial > geeqie.yaz
comparison src/cache.c @ 1153:b83e280ab7cc
Change metadata directory to be $XDG_DATA_HOME instead of $XDG_CACHE_HOME as discussed on the ml (obviously it has impact only when XDG support is set). Suggestion by Omari Stephens.
author | zas_ |
---|---|
date | Mon, 17 Nov 2008 17:09:44 +0000 |
parents | c4fcf8001574 |
children | c45cc5cf3c4d |
comparison
equal
deleted
inserted
replaced
1152:507600811ccd | 1153:b83e280ab7cc |
---|---|
785 | 785 |
786 if (metadata_cache_dir) return metadata_cache_dir; | 786 if (metadata_cache_dir) return metadata_cache_dir; |
787 | 787 |
788 if (USE_XDG) | 788 if (USE_XDG) |
789 { | 789 { |
790 metadata_cache_dir = g_build_filename(xdg_cache_home_get(), GQ_APPNAME_LC, GQ_CACHE_METADATA, NULL); | 790 /* Metadata go to $XDG_DATA_HOME. |
791 * "Keywords and comments, among other things, are irreplaceable and cannot be auto-generated, | |
792 * so I don't think they'd be appropriate for the cache directory." -- Omari Stephens on geeqie-devel ml | |
793 */ | |
794 metadata_cache_dir = g_build_filename(xdg_data_home_get(), GQ_APPNAME_LC, GQ_CACHE_METADATA, NULL); | |
791 } | 795 } |
792 else | 796 else |
793 { | 797 { |
794 metadata_cache_dir = g_build_filename(get_rc_dir(), GQ_CACHE_METADATA, NULL); | 798 metadata_cache_dir = g_build_filename(get_rc_dir(), GQ_CACHE_METADATA, NULL); |
795 } | 799 } |