mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-22 08:52:50 -04:00
If an extension has a higher priority than another, but is still mounted beneath another, then the order of binds need to be different than the ld order. For example, in steam we want the 32bit GL extension to override any GL in the Compat32 extension, but the GL extension needs to be be in /usr/lib/32bit/lib/GL, whereas the Compat32 extension is in /usr/lib/32bit. We handle this by first bind mounting all extensions in place, in alphabetical path order (i.e. shorter first), and then apply the ld paths in priority order. This matches whats described in https://github.com/flatpak/flatpak/issues/1075 Closes: #1076 Approved by: alexlarsson