diff --git a/kicad/pcm/pcm.cpp b/kicad/pcm/pcm.cpp index f72ab31ec2..07ebe13829 100644 --- a/kicad/pcm/pcm.cpp +++ b/kicad/pcm/pcm.cpp @@ -372,8 +372,8 @@ const bool PLUGIN_CONTENT_MANAGER::CacheRepository( const wxString& aRepositoryI bool packages_cache_exists = false; // First load repository data from local filesystem if available. - wxFileName repo_cache = wxFileName( m_3rdparty_path, wxT( "repository.json" ) ); - repo_cache.AppendDir( wxT( "cache" ) ); + wxFileName repo_cache = wxFileName( PATHS::GetUserCachePath(), wxT( "repository.json" ) ); + repo_cache.AppendDir( wxT( "pcm" ) ); repo_cache.AppendDir( aRepositoryId ); wxFileName packages_cache( repo_cache.GetPath(), wxT( "packages.json" ) ); @@ -794,8 +794,8 @@ PLUGIN_CONTENT_MANAGER::GetRepositoryPackageBitmaps( const wxString& aRepository { std::unordered_map bitmaps; - wxFileName resources_file = wxFileName( m_3rdparty_path, wxT( "resources.zip" ) ); - resources_file.AppendDir( wxT( "cache" ) ); + wxFileName resources_file = wxFileName( PATHS::GetUserCachePath(), wxT( "resources.zip" ) ); + resources_file.AppendDir( wxT( "pcm" ) ); resources_file.AppendDir( aRepositoryId ); if( !resources_file.FileExists() )