Skip to content

Add $HOME/.local/bin to $PATH if it exists

Ben Westgate requested to merge (removed):stable into stable

From XDG Base Directory Specification:

User-specific executable files may be stored in $HOME/.local/bin. Distributions should ensure this directory shows up in the UNIX $PATH environment variable, at an appropriate place.

Currently Tails only checks if the legacy user binary path $HOME/bin exists and adds that to $PATH, however the more correct modern location to use: $HOME/.local/bin is not detected and added to $PATH like XDG-compliant applications expect.

I have copied the exact lines from my $HOME/.profile file in Ubuntu (a distribution that complies with XDG Base Directory Spec and adds $HOME/.local/bin to $PATH if it exists).

Edited by Ben Westgate

Merge request reports