Re:Linux kernel will support $ORIGIN, sort of
by Siyo on Tuesday July 21, 2026 @05:53AM
(#48990141)
I wonder if something equivalent exists for loading other kinds of assets. Take files that would normally live under `/usr/share`. References to these files are typically hardcoded with an absolute path as well. It's usually possible to relocate them at build time by specifying a different absolute prefix, but making them relative the conventional way would likely require patching.
[ Parent
| on HN ]
Re:Linux kernel will support $ORIGIN, sort of
by aboardRat4 on Tuesday July 21, 2026 @11:24AM
(#48993508)
You can always set "RESOURCE_PATH" and load your files from there.
Sure, assuming this is your own software. The context of the article is on working towards a general approach to relocatable nix binaries so I don't think that's going to scale across nixpkgs.
Re:Linux kernel will support $ORIGIN, sort of
by aboardRat4 on Tuesday July 21, 2026 @02:16PM
(#48996023)
If you don't own the software, the software can do many things to break nix' relocatable binaries too.