-
Notifications
You must be signed in to change notification settings - Fork 15
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 platform specific directories #45
Comments
Not sure if I like the idea of spreading our load across all over the file system. Also, since cum is not not Linux software, we have to add additional check to see if we are on Linux and then check the variables. @CounterPillow can probably chime in on the Linux shit. |
Even if freedesktop is a source of shitty standards nobody correctly implements, I'm not really against this as long as we keep the cumdir option to mean "both locations in this one place" so we don't have to muck about with environment variables when testing. I have both applications that implement the XDG basedir spec and applications that just dump things into dot-dirs in ~ on my system. That being said, I prefer currently working code to code that has not yet been written, requires existing cum users to move their files, and is going to introduce platform-specific behaviour. So I'd like to hear one problem this solves other than just "freedesktop has a standard on it", but then again I'm not the one making decisions here. |
The main reason for using XDG specs are easier backups. Ideally, I would just archive the contents |
+1 on XDG when implemented properly, since it does make organizing backups etc. significantly easier - anything that's in ~/.config I can just universally check for changes, whereas for various other dotfiles I need to manually whitelist configuration-type files. (Then again, some applications violate XDG or do stupid things with their configuration so I need to manually inspect anything anyway. But at least it makes it easier to populate the list of things to inspect) @jtojnar XDG_CONFIG_HOME etc. isn't an environment variable, at least not on my system. |
You simply haven't set XDG_CONFIG_HOME, so you're using the default location. Since I'm currently the only contributor using cum on Linux, I'll look into implementing this in the near future unless @Hamuko disagrees. Though as always, feel free to submit a PR yourself if I'm being slow. |
Oh, never mind my comment. I thought you were proposing the logic of using XDG if |
Fixes #45 We fall back to using the old cum directory if the new schema doesn't exist but we can find an old cum directory. config.cum_dir is no longer a global; instead, config_dir and data_dir should be used regardless of platform.
On Linux XDG basedir specification should be followed. That means the database should be stored in
data_dir
:And the configuration file in
config_dir
:The text was updated successfully, but these errors were encountered: