Skip to content
Snippets Groups Projects
Commit a7c02d4a authored by Simon McVittie's avatar Simon McVittie
Browse files

runtime: Allow bwrap, exports to be NULL when using a mutable sysroot


In the case where we use Flatpak sub-sandboxing, we're not going to be
building a bubblewrap command-line at all. Luckily, when we make use of
a mutable sysroot, we don't need it.

This requires splitting bind_runtime(), which consists of

* a part that builds up the basic bwrap command-line and environment
  variables before setting up the graphics stack (now bind_runtime_base())
* setting up the graphics stack by either building a bwrap command-line
  or editing the mutable sysroot, and in either case setting environment
  variables (pv_runtime_use_provider_graphics_stack())
* a final part that sets the last few bwrap arguments and exports
  (bind_runtime_finish(), which can't currently fail)

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 3d892b62
Branches
Tags
1 merge request!213Further refactoring towards Flatpak sub-sandboxing support
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment