mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-09-20 05:30:25 +02:00
2b34aeea5d
Signed-off-by: Leah Rowe <leah@libreboot.org>
32 lines
1.3 KiB
Diff
32 lines
1.3 KiB
Diff
From 6c60f71343ada19cf657593af1dcc1d3d3da3d80 Mon Sep 17 00:00:00 2001
|
|
From: LibreWolf Developers <noreply@librewolf.net>
|
|
Date: Sun, 6 Sep 2026 10:11:32 +0100
|
|
Subject: [PATCH 35/52] macos-relaunch-without-updater.patch
|
|
|
|
---
|
|
toolkit/xre/nsCommandLineServiceMac.mm | 8 ++++++--
|
|
1 file changed, 6 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/toolkit/xre/nsCommandLineServiceMac.mm b/toolkit/xre/nsCommandLineServiceMac.mm
|
|
index 3fc9808a5524..a20e7114bd69 100644
|
|
--- a/toolkit/xre/nsCommandLineServiceMac.mm
|
|
+++ b/toolkit/xre/nsCommandLineServiceMac.mm
|
|
@@ -61,8 +61,12 @@ void SetupMacCommandLine(int& argc, char**& argv, bool forRestart) {
|
|
NSString* updaterPath = [[path stringByDeletingLastPathComponent]
|
|
stringByAppendingPathComponent:
|
|
@"updater.app/Contents/MacOS/org.mozilla.updater"];
|
|
- AddToCommandLine(updaterPath.UTF8String);
|
|
- AddToCommandLine("--openAppBundle");
|
|
+ // Only use the updater as a relauncher when it exists. When the updater is
|
|
+ // disabled, fall back to relaunching the .app bundle directly via NSWorkspace.
|
|
+ if ([[NSFileManager defaultManager] fileExistsAtPath:updaterPath]) {
|
|
+ AddToCommandLine(updaterPath.UTF8String);
|
|
+ AddToCommandLine("--openAppBundle");
|
|
+ }
|
|
}
|
|
|
|
// We adjust the path to point to the .app bundle, rather than the executable
|
|
--
|
|
2.47.3
|
|
|