From bbda71f2c8763ec7a06eb9bca75ad5ce8f752d12 Mon Sep 17 00:00:00 2001 From: Moti Zilberman Date: Thu, 17 Jul 2025 03:13:26 -0700 Subject: [PATCH] Fix argv handling for packaged mode (#52641) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52641 Changelog: [Internal] TSIA, missed this in D77591742 bypass-github-export-checks Reviewed By: huntie Differential Revision: D78413090 fbshipit-source-id: a02d604def172b531a89021496208171373ddd8c --- packages/debugger-shell/src/electron/index.flow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/debugger-shell/src/electron/index.flow.js b/packages/debugger-shell/src/electron/index.flow.js index a07b0fc2afa..12c6cad5537 100644 --- a/packages/debugger-shell/src/electron/index.flow.js +++ b/packages/debugger-shell/src/electron/index.flow.js @@ -28,7 +28,7 @@ if (version) { } const gotTheLock = app.requestSingleInstanceLock({ - argv: process.argv.slice(2), + argv: process.argv.slice(app.isPackaged ? 1 : 2), }); if (!gotTheLock) {