6 ms·
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
by Siyo 2mo ago
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.
- aboardRat4 2mo agoYou can always set "RESOURCE_PATH" and load your files from there.
- Siyo 2mo agoSure, 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.
- aboardRat4 2mo agoIf you don't own the software, the software can do many things to break nix' relocatable binaries too.