← Back to team overview

kicad-developers team mailing list archive

Re: Config file relocation (new patch)

 

Hi Wayne,

I'm not sure now if that is where they should go. I looked a little through past emails here and apparently things such as libraries, modules, etc are in subdirectories in ~/Library/Application Support/kicad

Another thing I noticed is that the function I found to make it easy to put the config files there was not in wx2.8, so I don't know if we want to use it. The function is wxStandardPaths::UseAppInfo( wxStandardPaths::AppInfo_None ); and that allows me to use wxStandardPaths::GetUserDataDir() without wx putting the program name at the end of that path.

See the message I just sent to the list with an updated patch.

I'll see what I can do with the Cmake files. I don't know cmake and don't do much shell scripting, so I'm not sure how to add the .config/kicad directory in there right now.

Thanks,
Moses

On 09/03/2014 03:44 PM, Wayne Stambaugh wrote:
Hey Moses,

If the OSX config files should go in ~/Library/Application Support/kicad
would you please update the patch accordingly.  Also, could you create a
patch to send to the library developers to update the fp-lib-table
install script so it gets installed to ~/.config/kicad?

As soon as the OSX testing is confirmed and the install script patch is
ready, I will commit the changes.

Thanks,

Wayne

On 9/3/2014 1:17 PM, Moses McKnight wrote:
Hi Wayne,

One person on IRC is compiling with the patch to test on OSX.  Currently
the files on OSX should go in ~/Library/Preferences/kicad, but from what
he said and also from these links, it looks like that might should be
changed to ~/Library/Application Support/kicad.  I did figure out an
easy way to make the change if it is decided that is better.

http://stackoverflow.com/questions/15677388/default-location-for-configuration-files-macos

https://developer.apple.com/library/mac/documentation/General/Conceptual/MOSXAppProgrammingGuide/AppRuntime/AppRuntime.html


The install_****_fp-lib-table cmake stuff is in the kicad library
repository, looks like under the template directory.

Moses

On 09/03/2014 09:02 AM, Wayne Stambaugh wrote:
<snip>
Can someone please test this on OSX to make sure it doesn't cause any
issues before we commit it.  Also, kicad-install.sh calls `make
install_github_fp-lib-table` to install the global fp-lib-table.  I
cannot find the definition of install_github_fp-lib-table in any of the
kicad CMake files.  Where ever this is defined, it will need to be
changed to copy the global fp-lib-table to ~/.config/kicad.

Thanks,

Wayne


_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp



_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp



Follow ups

References