-
Notifications
You must be signed in to change notification settings - Fork 110
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
[Feature]: move settings under $HOME/.config/waveterm #1025
Comments
The location can be updated by manually moving the directory and setting the WAVETERM_HOME env var to the new location. Does this satisfy your use case? I'm hesitant to change the default right now as it might make the folder harder to find. Open to being convinced otherwise |
I would like to chip in a bit. Most modern applications in *nix (Linux, MacOS, etc.) respect XDG Base Directory Specification, which means that:
Using Personally, I'm redefining Sorry if I'm coming out as rude or too demanding. Edit: One nice thing about using common |
Y'all got me convinced 😄 Working to get this merged in v0.9, working out a back-compat story |
Lots of changes have been implemented over time. Thanks. |
yeah definitely leaving it there for folks who prefer it, but the new default will be XDG |
@maxadamo @abhabongse I'm a bit hesitant to set .config as the default for macOS, given it's not the platform default (~/Library/Application Support). Do you have XDG_CONFIG_HOME, etc. manually set on macOS? |
I've updated the PR with what I feel is a good compromise. Going forward for new installations, config and data files will be stored at the platform default paths, as defined by env-paths. For backwards compatibility, if the As with the existing app, dev instances will write to |
I don't have the XDG variables on my Mac. The solution that you are implementing looks good to me. |
Feature description
settings are currently stored under
$HOME/.waveterm
, and as a result of this the home directory is very cluttered.Implementation Suggestion
The new applications tend to store the settings under
$HOME/.config/<app-name>
Anything else?
No response
The text was updated successfully, but these errors were encountered: