All pretty horrid...
Quite a calm write up even if Canonical paid the airfare to Latvia - I imagine a really nice place especially at this time of year.
All been down hill from Autotools' configure, make, make install :)
One tip if you really really must extract executables and libraries from snaps, flatpaks etc and have to put them under /opt or /usr/local or whatever your peculiar poison -- patchelf can really be your friend - LD_LIBRARY_PATH and LD_PRELOAD will always eventually disappoint :)
With this nifty utility you can modify the interpreter (run time loader ld.so), the search path rpath/runpath, needed libraries and more besides in elf executables and shared libraries. ($ORIGIN is a godsend.) Always script the modifications so updates or repackaging can be automated.
If the application uses the dlopen() with absolute paths that might scuttle your efforts unless you descend into even more skulduggery. :)
I once had to do this with a binary only flatpak(?) app and repackage it as an rpm. :(
Feels a bit like Thomas de Qincey "Confessions of..."