News for hackers. Stuff that matters.
Re:Gobolinux : Redefining Linux filesystem hierarchy by Dylan16807 on Tuesday December 28, 2021 @11:58PM (#29722060)
Hardcoding two locations is only marginally better than hardcoding one. (By probe I assume you mean probing a hardcoded list rather than something even more fragile and confusing.)
Re:Gobolinux : Redefining Linux filesystem hierarchy by zaphirplane on Wednesday December 29, 2021 @01:49AM (#29722569)
Why ? If it’s in the path use that, else if in /sbin use that else in /bin use that

Everyone happy

Re:Gobolinux : Redefining Linux filesystem hierarchy by usrbinbash on Wednesday December 29, 2021 @02:31AM (#29722740)
Until it suddenly isn't in either of these paths, maybe because its required to run in some quirky setup.

Hrdcoded paths for things a program doesn't bring with itself, should be avoided in general. There is a reason $PATH exists and is easily extended. It is the users/admins responsibility to make sure envvars are set correctly, and it's the programs responsibility to give a useful error message when it cannot locate the programs it expects in $PATH