← Back to team overview

kicad-developers team mailing list archive

3D cache path

 

Hi Folks,

 I've had some feedback on the location of the 3D cache data on various
systems.
At the moment the data is in
wxStandardPaths::Get().GetUserConfigDir()/kicad/3d/cache
and since that's a subdir of a configuration directory I guess it's not
surprising
that users are not happy.

>From discussion with other devs it seems to be agreed that the
3D cache data should go into:

1. OSX: ~/Library/Caches/kicad/3d
    Equivalent: ${HOME}/Library/Caches/kicad/3d

2. Linux: ~/.cache/kicad/3d
    Actually it should be ${XDG_CACHE_HOME}/kicad/3d with the fallback
    ${HOME}/.cache/kicad/3d

3. MSWin: AppData\Local\kicad\3d
   wxStandardPaths::UseAppInfo( AppInfo_None );
   wxStandardPaths::Get().GetUserLocalDataDir();
   So far we have %AppData%\Local or equivalent, now we add kicad\3d

Any comments/objections? If there are no objections I will create a patch
to implement this. One drawback of course is that current users of the
dev branch will have a lot of junk cache data in the old location but this
is
a detail which should be fixed.

- Cirilo

Follow ups