Skip to content
Snippets Groups Projects
  • Simon McVittie's avatar
    b5541c41
    pv_wrap_append_preload: Factor out most of it · b5541c41
    Simon McVittie authored
    
    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: default avatarSimon McVittie <smcv@collabora.com>
    b5541c41
    History
    pv_wrap_append_preload: Factor out most of it
    Simon McVittie authored
    
    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: default avatarSimon McVittie <smcv@collabora.com>