From c26a183393dad03f259dd3f3d73ce99e62298c4c Mon Sep 17 00:00:00 2001 From: adasamer Date: Mon, 19 May 2025 16:48:39 -0400 Subject: [PATCH 1/2] Bugfix 2071: Remove prev commit, handle quotes when logging on macOS --- changes/2071.bugfix.rst | 1 + src/briefcase/platforms/macOS/__init__.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changes/2071.bugfix.rst diff --git a/changes/2071.bugfix.rst b/changes/2071.bugfix.rst new file mode 100644 index 000000000..cba4ef63d --- /dev/null +++ b/changes/2071.bugfix.rst @@ -0,0 +1 @@ +Handle paths on MacOS with double quotes. diff --git a/src/briefcase/platforms/macOS/__init__.py b/src/briefcase/platforms/macOS/__init__.py index fc37e4260..92c5af134 100644 --- a/src/briefcase/platforms/macOS/__init__.py +++ b/src/briefcase/platforms/macOS/__init__.py @@ -400,7 +400,9 @@ def run_gui_app( # as the process will generate lots of system-level messages. # We can't filter on *just* the senderImagePath, because other # apps will generate log messages that would be caught by the filter. - sender = os.fsdecode(self.binary_path(app) / "Contents/MacOS" / app.formal_name) + sender = os.fsdecode( + self.binary_path(app) / "Contents/MacOS" / app.formal_name + ).replace('"', '\\"') log_popen = self.tools.subprocess.Popen( [ "log", From 573c5202b53ff0ccc363e037a9d9ef29dea9a924 Mon Sep 17 00:00:00 2001 From: dev-adas <130794257+dev-adas@users.noreply.github.com> Date: Wed, 21 May 2025 13:26:58 -0400 Subject: [PATCH 2/2] Update changes/2071.bugfix.rst Co-authored-by: Russell Keith-Magee --- changes/2071.bugfix.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changes/2071.bugfix.rst b/changes/2071.bugfix.rst index cba4ef63d..4d8e3db6e 100644 --- a/changes/2071.bugfix.rst +++ b/changes/2071.bugfix.rst @@ -1 +1 @@ -Handle paths on MacOS with double quotes. +Apps whose formal name includes a `"` are now correctly handled on macOS.