kworkflow / patch-hub

patch-hub is a TUI that streamlines the interaction of Linux developers with patches archived on lore.kernel.org
GNU General Public License v2.0
8 stars 6 forks source link

feat: relocate config.json to XDG-compliant directory #83

Closed gabrielsrd closed 3 weeks ago

gabrielsrd commented 3 weeks ago

This commit changes the default location of the config.json configuration file for patch-hub to ~/.config/patch-hub/config.json from its previous location at ~/.local/share/patch-hub/config.json. This relocation ensures compliance with XDG Base Directory standards.

Additionally, a test has been added in src/app/config/tests.rs to confirm that the config file is saved correctly in the new location with appropriate content.

davidbtadokoro commented 3 weeks ago

Hey @gabrielsrd, and thanks for yet another great PR. In the end, I've found that a test case for this isn't so critical and that it may introduce instability to the suite, as we saw yesterday when trying to debug it :disappointed:.

In any case, I've run some manual tests that validated the change. Merged into the unstable branch :+1: