From c15e63bd0c59464f3b05339c4014ad7b95825012 Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Tue, 20 Oct 2026 16:51:12 +0100 Subject: [PATCH] Fix whitespace in React Native DevTools Linux app path --- scripts/debugger-shell/build-binary.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/debugger-shell/build-binary.js b/scripts/debugger-shell/build-binary.js index b7ff37ec5471..d33d6a98e582 100644 --- a/scripts/debugger-shell/build-binary.js +++ b/scripts/debugger-shell/build-binary.js @@ -65,6 +65,10 @@ const platformConfigs = [ platform: ['linux'], arch: ['x64', 'arm64'], icon: path.join(ICON_BASE, 'icon.png'), + // Chromium's Linux SUID sandbox launch splits the chrome-sandbox path on + // whitespace, so the Linux app directory and executable must not contain + // spaces. See https://github.com/react/react-native/issues/54906. + name: APP_NAME.toLowerCase().replaceAll(' ', '-'), }, ]; @@ -98,9 +102,9 @@ async function main() { await Promise.all( platformConfigs.map(platformConfig => packager({ + name: APP_NAME, ...platformConfig, dir: PACKAGE_ROOT, - name: APP_NAME, appVersion: pkg.version, appCopyright: COPYRIGHT, appCategoryType: 'public.app-category.developer-tools',