yams icon indicating copy to clipboard operation
yams copied to clipboard

Refactor file handling to use platformdirs for config, state files etc

Open Thaodan opened this issue 2 years ago • 0 comments

Instead of hard coding the config directory use platformdirs to find the configuration directory. The benefit is that if the user has changed XDG_CONFIG_HOME to a different directory the program still works. The side effect is that the program is more portable now.

Apply this also to the session file, the log file and the pid file to move them to their appropriate directories. Fixes #17.

Requires regeneration of config file as these are stored in the configuration file.

Includes #21.

Thaodan avatar Nov 03 '23 23:11 Thaodan