← Back to team overview

kicad-developers team mailing list archive

Re: Configuration file relocation.

 

On 09/05/2014 04:31 PM, Wayne Stambaugh wrote:
I just committed Moses' configuration file relocation patch in r5114.

On Linux the configuration files are now located in $HOME/.config/kicad
per the FreeDesktop.org specification.  To preserve you current
settings, you can move the kicad configuration files for your $HOME
folder to the new location.  You must drop the leading . from the file
name.  You must also move the fp-lib-table file.  You will have to make
copies of these files if you plan on using any version of kicad prior to
r5114.

Sorry windows users but you will have to reconfigure KiCad.  There was
no easy way to extract the registry keys into configuration files.  The
configuration files on Windows will be saved in the same folder as
fp-lib-table which is %APPDATA%\kicad.  You may want to clean the kicad
cruft from the registry if your not going to use any versions of kicad
prior to r5114.

There should be no change for OSX users.

Hi Wayne, I'm pretty sure this is not true? I just dug through the wxWidgets source, and it looks like before wxFileConfig wrote the files on OSX in ~/Library/Preferences, but they now go in ~/Library/Preferences/kicad.

It appears the same was true for fp-lib-table. As such, the patch I had come up with for the library install is attached to this email. I had not sent it before because I was not certain the new config location for OSX was the best place, and then kind of forgot about it.

Thanks, Moses

Can someone please apply the attached patch to the library install in
the github repo so the fp-lib-table file gets installed in the correct
path by anyone using the kicad-install.sh script.

Thank you Moses for contributing to KiCad.

Sorry about the inconvenience but this change fixes the $HOME folder
configuration file pollution on Linux and removing the configuration
from the Windows registry which both users and developers have been
pushing for.
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt	2014-01-17 19:56:42 +0000
+++ CMakeLists.txt	2014-09-03 21:30:58 +0000
@@ -41,9 +41,13 @@
 
 
 if( UNIX )
-    set( KICAD_USER_CONFIG_DIR $ENV{HOME} CACHE PATH "Location of user specifig KiCad config files" )
+	if( APPLE )
+	    set( KICAD_USER_CONFIG_DIR $ENV{HOME}/Library/Preferences/kicad CACHE PATH "Location of user specifig KiCad config files" )
+	else()
+	    set( KICAD_USER_CONFIG_DIR $ENV{HOME}/.config/kicad CACHE PATH "Location of user specifig KiCad config files" )
+	endif()
 elseif( MINGW )
-    set( KICAD_USER_CONFIG_DIR $ENV{%APPDATA%} CACHE PATH "Location of user specifig KiCad config files" )
+    set( KICAD_USER_CONFIG_DIR $ENV{%APPDATA%}/kicad CACHE PATH "Location of user specifig KiCad config files" )
 endif()
 mark_as_advanced( KICAD_USER_CONFIG_DIR )
 


Follow ups

References