config: allow xdg .config folder fully deprecate old klipper_config and home folder config

config order of preference

1. printer_data/config
2. xdg .config/KlipperScreen
3. klipperscreen repo directory
This commit is contained in:
alfrix
2024-01-26 13:48:42 -03:00
parent 160e2ecd31
commit 9d0e4b841f
4 changed files with 35 additions and 36 deletions

View File

@@ -2,6 +2,10 @@
Breaking changes will be listed here.
#### [2024_01_26]()
* Deprecated old ~/klipper_config folder users need to place the configfile
in ~/printer_data/config, ~/.config/KlipperScreen, or directly in the repo
#### [2023 10 08](https://github.com/KlipperScreen/KlipperScreen/commit/b6199a4f24beb02dc0f8956f60c88e3ba3468927)
* Deprecated [bed_screws] and [z_calibrate_position] sections those configs should go in [printer name]

View File

@@ -235,10 +235,9 @@ enable: {{ 'MY_MACRO' in printer.gcode_macros.list }}
KlipperScreen will search for a configuration file in the following order:
1. _~/KlipperScreen.conf_
2. _${KlipperScreen_Directory}/KlipperScreen.conf_
3. _~/printer_data/config/KlipperScreen.conf_
4. _~/klipper_config/KlipperScreen.conf_
1. _~/printer_data/config/KlipperScreen.conf_
2. _~/.config/KlipperScreen/KlipperScreen.conf_
3. _${KlipperScreen_Directory}/KlipperScreen.conf_
If you need a custom location for the configuration file, you can add -c or --configfile to the systemd file and specify
the location of your configuration file.