-
Notifications
You must be signed in to change notification settings - Fork 88
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 the XDG standard bin directory on linux? #247
Comments
I very strongly prefer that all Julia-related stuff (including anything that I think it's fine to have an option that lets users opt-in to the XDG directories. But I don't want it to be the default behavior. |
Somewhat related: JuliaLang/julia#4630 |
Note that if the Juliaup binaries are installed system-wide and you turn on symlink creation for channels, those symlinks will actually be installed into |
Is |
Not necessarily, but there will be a warning if not |
Then why not just make the symlinks in e.g. As I wrote above, I think it's really convenient for everything Julia related to always be located in |
Yikes, JuliaLang/julia#4630 has some pretty strong opinions there. To be honest, my main gripe with the current Not needing to modify the user's
It certainly is on Ubuntu 18.04, and apparently should generally be on systemd-based distributions. See |
Yeah, I have to say the longer I've been thinking about it, I'm also not super happy about the I think I'm kind of gravitating towards putting the binaries into The second (somewhat orthogonal) question is about the We should probably also play a system wide install option mentally through, and see how that might change things. |
I did some investigation on my local system and here's how it's set up:
So unfortunately this is quite a mess because the user might have customized their |
Yep, that is where I got stuck as well: all the startup scripts I ever saw seem to check whether the folder exists before they add it to the |
I think that |
#329 now defaults to installing |
Just a quick update here: I reverted #329, so Juliaup by default installs itself into I think the best strategy on all of this is that medium term on Linux we try to get this entire Juliaup stuff into the system package managers as the I'm going to close this for now, as I think the current system seems to work well enough across many platforms. |
The
$HOME/.local/bin
directory is recommended by the XDG standard as a place to store executables:So perhaps
juliaup
for linux should be installed into$HOME/.local/bin/juliaup
rather than a specialjuliaup
directory? This should also help with #222 because it should do away with needing to modify .bashrc on linux. I'm generally not keen on tools messing with my shell configuration in an automated way!See also https://unix.stackexchange.com/questions/316765/which-distributions-have-home-local-bin-in-path
This was similarly discussed by
rustup
people, but stalled for no apparent good reason: rust-lang/rustup#247Originally posted by @c42f in #143 (comment)
The text was updated successfully, but these errors were encountered: