-
Notifications
You must be signed in to change notification settings - Fork 62
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
Proper home support on Linux #66
base: master
Are you sure you want to change the base?
Conversation
I'd be in favor of a build option to change the default install directory. For me I like my compilers to go in P.S. the purpose of the |
It's a tradition of the UNIX world. It's considered impolite to mess with one's home directory without notice. I remembered backlash back when Go did the same thing. In Go, I'd say for Linux, FYI, rustup use
I doubt most user care about that. I use |
Clearly the pattern there is
|
Creating a
The XDG base directory specification is the most widely accepted and well-documented answer to this question. Placing direct dotfiles in home is typically viewed as an incorrect legacy approach by the Linux community. The XDG standard is also not Linux-specific and is applicable to any unix-like system. If you want to cater to macOS, the correct location would be macOS File System Programming Guide
macOS Library Directory Details:
|
I've not personally used it, but I know a number of zig projects (e.g. zls) use https://github.com/ziglibs/known-folders for cross-platform support for paths to config/data folders. |
I'm not sure how other posix OS will handle this. On Linux
~/.local/share/zig
is the proper path to use.