kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #14610
Configuration file relocation.
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.
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.
Cheers,
Wayne
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8cbc14a..027202b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -41,10 +41,13 @@ mark_as_advanced( KICAD_DATA KICAD_MODULES KICAD_LIBRARY )
if( UNIX )
- set( KICAD_USER_CONFIG_DIR $ENV{HOME} CACHE PATH "Location of user specifig KiCad config files" )
+ set( KICAD_USER_CONFIG_DIR "$ENV{HOME}/.config/kicad"
+ CACHE PATH "Location of user specifig KiCad config files" )
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