Versioning Configure Paths Environment Variables

All my kicad projects are versioned with git. I use hard links to to make use of my global sym-lib-table and fp-lib-table files in each project so I can use these across devices and share them for collaboration. For example, my project lies within ~/myproject and my config files are in the default location ~/.config/kicad/6.0. From within ~/myproject I use hard links with:

ln ~/.config/kicad/6.0/sym-lib-table

which will create a hard link of the global sym-lib-table within my project. That way, whenever I make a change to the table, I can commit that change and ensure that a given commit in the project has a working table alongside it.

I’m looking for a similar way to version or backup the Environmental Variables found within the Configure Paths GUI:

Unfortunately I cannot find any documentation as to where these Environmental Variables are stored. If I make a change to these, I am not detecting any change in the ~/.config/kicad directory. I also don’t detect any changes within my project files. Does anyone know where this information is stored such that I can back it up, share it, or version it? I know I can simply copy and paste it, but I don’t want to depend on my remembering to make a manual copy every time I make a change. I would like to commit this data to git such that I can track changes to it.

References:

User defined envvars including overrides are in kicad_common.json in the config directory, for example I have:

  "environment": {
    "show_warning_dialog": true,
    "vars": {
      "KICAD_TEMPLATE_DIR": "/usr/share/kicad/template",
      "KICAD_USER_3DMOD": "/home/me/lib/kicad/Me/Me.3dshapes",
      "KICAD_USER_TEMPLATE_DIR": "/home/me/lib/kicad/template",
      "KIGITHUB": "https://github.com/KiCad"
    }
  }

The default envvars are probably hardwired in the distributed package as they are platform dependent.

Thanks! Turns out this file is only updated when you close KiCAD so I wasn’t seeing the changes in the config directory.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.