Move caches to ~/.cache

The system-cache (summaries and temporary repos for downloads) are moved
from ~/.local/share/flatpak/system-cache to
~/.cache/flatpak/system-cache (or wherever XDG_CACHE_HOME is) because
this is the proper location for caches.

Fixes https://github.com/flatpak/flatpak/issues/767
tingping/wmclass
Alexander Larsson 2017-05-04 17:28:06 +02:00
parent 2b5af6a036
commit 1a49029f9d
1 changed files with 2 additions and 3 deletions

View File

@ -592,10 +592,9 @@ flatpak_get_user_base_dir_location (void)
static GFile *
flatpak_get_user_cache_dir_location (void)
{
g_autoptr(GFile) base_dir = NULL;
g_autoptr(GFile) base_dir = g_file_new_for_path (g_get_user_cache_dir ());
base_dir = flatpak_get_user_base_dir_location ();
return g_file_get_child (base_dir, "system-cache");
return g_file_resolve_relative_path (base_dir, "flatpak/system-cache");
}
static GFile *