Skip to content
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

base-files: prefer /usr/local/bin to /usr/bin #15783

Closed
wants to merge 1 commit into from

Conversation

sgn
Copy link
Member

@sgn sgn commented Oct 25, 2019

Fix #15781

@Hoshpak
Copy link
Member

Hoshpak commented Oct 25, 2019

why?

@sgn
Copy link
Member Author

sgn commented Oct 25, 2019 via email

@sgn sgn force-pushed the etc-profile branch 2 times, most recently from f1db00c to 4f708ca Compare October 29, 2019 06:37
@Chocimier
Copy link
Member

I see proposed solution changed. But prepending usual paths to what was set before fit neither need of preserving variable nor need of setting clean one.
I would just go back to setting clean path, this is what eg. Debian does. Without this, there are too many different defaults, like login(1), graphical DMs, sshd. All are wrong i some way: no local, symlink before real dir an so on.

@sgn
Copy link
Member Author

sgn commented Nov 12, 2019 via email

With current approach, there're too many different between sessions
started by tty login(1), graphical DM, sshd, tmux.

All of them are incorrect in different ways:
- binary in /usr/local isn't prefered as it should be.
- symlink is going before realdir

Let's just reset it to clean value, and let user do whatever they wants
in their user's profile/rc files, or by add drop-in in /etc/profile.d

Fix void-linux#15781
@sgn sgn closed this Jan 12, 2020
@sgn sgn deleted the etc-profile branch January 12, 2020 00:23
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

On SSH session, /usr/bin is prefered over /usr/local/bin in search PATH
3 participants