ChatGPT
ChatGPT copied to clipboard
[Feature] Move configration folder to platform-appropriate locations
Feature description
It would be nice to have the configuration folder be in the appropriate location on each platform - ~/.config on Linux, AppData on Windows and ~/Library/Preferences on Mac.
Motivation
Each platform has it's own specific standards and conventions for configurations, and it would be nice if this app respected them instead of sort of dumping everything in the home directory. This would also make packaging for things like Flatpak much easier.
I think it is different from a normal app because it is still adding more features and relying on local files for data storage. If we consider the config, log, cache, data data storage of different platforms, they will be scattered in various directories, which may not be the easiest way for unified maintenance management, and users have to look for them in different directories.
I think it is different from a normal app because it is still adding more features and relying on local files for data storage.
This is the case for all apps. Yours is no different.
If we consider the
config,log,cache,datadata storage of different platforms, they will be scattered in various directories, which may not be the easiest way for unified maintenance management, and users have to look for them in different directories.
The only one that people really will care about is config, and you can provide paths in the README.
Another option to consider would be supporting the XDG Base Directory Specification, which has gained a lot of traction and which many tools now honor.
I would also like my .chatgpt folder to be in .config/ this is maybe possible with an environment variable ?