Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
webkit-bwrap debugging
diff --git a/Tools/flatpak/flatpakutils.py b/Tools/flatpak/flatpakutils.py
index b4061a5d1886..a2663c87b663 100644
--- a/Tools/flatpak/flatpakutils.py
+++ b/Tools/flatpak/flatpakutils.py
@@ -852,6 +852,8 @@ class WebkitFlatpak:
for envvar, value in sandbox_environment.items():
flatpak_command.append("--env=%s=%s" % (envvar, value))
+ flatpak_command.append("--env=WEBKIT_FOO=42")
+
if not building_gst and args[0] != "sccache":
extra_flatpak_args.extend(self.setup_gstbuild(building))
diff --git a/Tools/flatpak/webkit-bwrap b/Tools/flatpak/webkit-bwrap
index 2ec741c1200b..9db760d1e9fd 100755
--- a/Tools/flatpak/webkit-bwrap
+++ b/Tools/flatpak/webkit-bwrap
@@ -27,6 +27,12 @@ import json
scriptdir = os.path.abspath(os.path.dirname(__file__))
def main(args: list) -> int:
+ print("webkit bwrap started. Args")
+ for i, arg in enumerate(args):
+ print(f" {i:2} -> [{arg}]")
+ print()
+ for key, val in sorted(os.environ.items()):
+ print(f" [{key}] -> [{val}]")
tmpdir = tempfile.gettempdir()
source_root = os.path.normpath(os.path.abspath(os.path.join(scriptdir, '../../')))
build_root = os.path.join(source_root, 'WebKitBuild')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment