pv_wrap_append_preload: Factor out most of it
Most of this code can be shared between the Flatpak and non-Flatpak
code paths, avoiding internal duplication.
In future, we will also want to call into append_preload_internal()
when we split up something like /usr/$LIB/mangohud/libMangoHud.so
or /opt/plat-$PLATFORM/mypreload.so into a separate path per supported
architecture: in such cases, we will still have to rewrite /usr into
/run/host/usr, and add /opt/plat-*/mypreload.so to the FlatpakExports.
Signed-off-by:
Simon McVittie <smcv@collabora.com>
parent
a28d7fdf
No related branches found
No related tags found
Please register or sign in to comment