-
Notifications
You must be signed in to change notification settings - Fork 152
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
Include default configurations with released binaries #60
Comments
Could you clarify more on what needs to be done here? |
It's a matter of opinion where the configuration goes. Just so it's easy for the end user to create the default configuration somewhere. The best idea would be to behave like ranger and have a command for joshuto to create the default configuration or atleast copy it from somewhere to a suited directory. I no longer think that |
I think this would be better handled by package managers rather than the build tools. ~$ joshuto --generate-config <path> which will generate a default config into given directory or or something like that |
In that case, how would joshuto remember where the configs are? I think an environment variable would work best for this. Example: ( export JOSHUTO_CONFIG_HOME="$XDG_CONFIG_HOME/joshuto" Perhaps the Of course, if the user doesn't have
The first option, I believe, is quite a bit more palatable. |
Joshuto currently already does this. See wiki/configuration
|
If The last entry should always exist on all known linux systems (Correct me if I'm wrong) which means that there is always a valid default to use. |
Yea, we can do this. The other options should be fairly straightforward to implement though. |
10f2eed: Added support for
If you strongly feel there is a need for |
It seams that you forgot to mention entry if let Ok(dirs) = xdg::BaseDirectories::with_prefix(PROGRAM_NAME) {
config_dirs.push(dirs.get_config_home());
} |
Yes, that is also implemented. I didn't mention it because it was already previously implemented |
Either create them in
~/.config/joshuto
or have them in/etc/default/joshuto
or some other directory.The text was updated successfully, but these errors were encountered: