Skip to content

Please use FreeDesktop $HOME/.config/ directory recommendation for *nix systems #3498

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

Closed
aplatypus opened this issue Oct 4, 2023 · 2 comments

Comments

@aplatypus
Copy link

Problem you are trying to solve

The rustup install shell script announces that it will load and create two related directories:

  • ~/.rustup
  • ~/.cargo

This adds to the burden of config data and metadata in dot-directories and dot-files on *nix systems. My personal practice is to place all dot- files and directories under the recommended ~/.config/ directory; even when I am forced to create symbolic a link, as in this example: ".mysql --> .config/mysql".

In the same section of rustup ... the script informs me that these locations can be modified respectively with:

  • RUSTUP_HOME and
  • CARGO_HOME

environment variables. At that point I cancelled the rustup shell install script and defined the relevant environment variables and re-ran the script with encouraging results. The initial preamble reported that the installer would use the:

  • ~/.config/rustup/
  • ~/.config/.cargo/

... directories defined by the respective environment variables. The installer did an excellent job "enabling" the specified directories. Well done rustup team :-D

Solution you'd like

I would prefer that the default configuration and metadata follow the OpenDesktop standard and place settings and data under the $HOME/.config/ directory.

The rustup script could use the environment variables FreeDesktop specification for setting environment variables.

Furthermore, this allows users to keep configuration information under one umbrella directory and improve general admin and maintenance processing.

Notes

Please see:

... for a more rounded view of this opportunity.

  • I appreciate that there are challenges raised for non-systemd_ installations.
    • However, some common, reasonable and pragmatic approach would probably enhance the configuration and maintenance process in any case.
  • Personally speaking, I'd like to tame all ".-files" and have them under a common location like ~/.config/...
@rami3l
Copy link
Member

rami3l commented Oct 4, 2023

@aplatypus Thanks for filing this issue!

It so happened that we have just discussed about making PATH changes persistent in #3495 (comment).

Although I'm personally okay with such a change, unfortunately the consensus was that it was out of scope and will not be implemented.

(cc @rbtcollins for closing some relevant issues)

@djc
Copy link
Contributor

djc commented Sep 11, 2024

Going to close this as a duplicate of #247.

@djc djc closed this as not planned Won't fix, can't repro, duplicate, stale Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants