5 ms·
GoboLinux does exactly that: https://en.m.wikipedia.org/wiki/GoboLinux https://en.m.wikipedia.org/wiki/GoboLinux
by selfhoster11 5y ago
GoboLinux does exactly that: https://en.m.wikipedia.org/wiki/GoboLinux https://en.m.wikipedia.org/wiki/GoboLinux
- DarkWiiPlayer 5y agoDammit, I wanted to be the one to mention gobo linux [HN deleted my laughing emoji ffs]
- andai 5y agoBeat the system ʕ•ᴥ•ʔ
- gavinray 5y agoHow do you deal with lack of being able to just point to "/usr/lib/include" or other things when saying "here's my directory of shared libs"? This is definitely interesting though, and an improvement I would say
- JonathonW 5y agoGoboLinux symlinks everything into an FHS-ish structure under /System/Index/ so you still have a single place where binaries/libraries/includes/etc. live. (There are also symlinks from /usr/lib, /usr/bin, and others into /System/Index/ for compatibility with programs where those might be hardcoded.)
- short12 5y agoThat actually seems like some low hanging fruit to go on a commit spree correcting code that hard codes paths
- oblio 5y agoGoboLinux is old enough to vote in most countries. So either those low hanging fruits are higher than they seem, or we're all just a bunch of dwarves. My bet is on the second option.
- matheusmoreira 5y agoIt is low hanging fruit as far as the software is concerned. Simply parameterize all paths. Will upstream accept such patches though? Sounds unlikely to me.
- 0des 5y agoWow, thanks for the reply, nice find! I did some poking around on my Linux system and even re-arranging the home folder was a task of its own because the system kept trying to replace folders in their original places. I will do some digging in to Gobo and see how they're handling this. Thanks again for pointing this out.
- dotancohen 5y ago> the system kept trying to replace folders in their original places. This is the file that you want: $ cat ~/.config/user-dirs.dirs XDG_DESKTOP_DIR="$HOME/" XDG_DOWNLOAD_DIR="$HOME/Downloads" XDG_TEMPLATES_DIR="$HOME/" XDG_PUBLICSHARE_DIR="$HOME/" XDG_DOCUMENTS_DIR="$HOME/" XDG_MUSIC_DIR="$HOME/" XDG_PICTURES_DIR="$HOME/" XDG_VIDEOS_DIR="$HOME/"
- yjftsjthsd-h 5y agoThat helps, but be warned that there are still programs running around that just hardcode their paths
- kaba0 5y agoCries in nixpkgs (Anyone who tried to package a program that hardcodes the “usual” binary paths know the pain)
- account42 5y agoDoesn't nix itself hardcode the nix store path though?
- kaba0 5y agoAfaik there is an option to change it, but it is not advisable as that will break the binary cache and you are left with compiling everything yourself. This is due to a technical limitation in that different packages can contain paths everywhere and thus they are inherently part of the resulting hash, on which other packages can depend.