-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Xdg base directory specifications for your files #5
Comments
and the |
Update will release in v1.0.1 |
To be sure that write I wrote in the commit appears for every issue reader, I copy it here : --
To not access the env var directly you can use https://pkg.go.dev/github.com/rkoesters/xdg/basedir. Don't forget to change the dataFolder to |
ok i just fix in here but i think i wont change the data folder because i think it's a bit unnecessary |
The use case for a separate data folder is config synchronisation. I have a main host used to work daily, a laptop when I'm not at home, and a macmini for specific usage. I sync my config files between all of them. Why would I need to sync logs and version check ? These are related to each host. The config folder is made for app configuration, and data/state folders are made to store the state of the app on the host. The last folder is cache, where we can delete files without changing application state or configuration because it will be rebuilt on the next start. It even can be cleaned on each reboot. So config is This is only an advice, easier to fix on early versions, but now it's you're decision. |
I didn't notice the problem of config synchronization Got it,next version will be changed |
There is a list of the possible folders :
$XDG_CONFIG_HOME/superfile
$XDG_CONFIG_HOME/superfile/theme
$XDG_STATE_HOME/superfile
This is the specification : https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
Some more informations : https://wiki.archlinux.org/title/XDG_Base_Directory
The text was updated successfully, but these errors were encountered: