Files
sousa-gecko/toolkit/xre/MacLaunchHelper.h
T
Silaghi 339a33df50 Revert "Bug 2031817: Part 7 - Add documentation r=spohl,mac-reviewers" for causing build bustages at config/recurse.mk
This reverts commit 85ef2987cb.

Revert "Bug 2031817: Part 6 - Fix a general memory leak r=spohl,mac-reviewers"

This reverts commit a7a3249151.

Revert "Bug 2031817: Part 4 - Add a build time debug option to enable Install from DMG in debug builds r=spohl,mac-reviewers"

This reverts commit 9bd2cdaadc.

Revert "Bug 2031817: Part 3 - Correctly set the SMPrivilegedExecutables key when there are multiple executables  r=spohl,haik,mac-reviewers,application-update-reviewers,aborondo"

This reverts commit 6e4183313c.

Revert "Bug 2031817: Part 2 - Use the XPC based DMG install helper instead of the updater r=spohl,mac-reviewers"

This reverts commit 1c4cad7a86.

Revert "Bug 2031817: Part 1 - Create a helper to install from DMGs r=spohl,mac-reviewers"

This reverts commit 396f41db86.
2026-07-14 10:08:15 +00:00

35 lines
1.0 KiB
C++

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef MacLaunchHelper_h_
#define MacLaunchHelper_h_
#include <unistd.h>
#ifdef __OBJC__
# include <Foundation/Foundation.h>
namespace mozilla::MacLaunchHelper {
void LaunchMacAppWithBundle(NSString* aBundlePath,
NSArray* aArguments = nullptr);
} // namespace mozilla::MacLaunchHelper
#endif // __OBJC__
extern "C" {
/**
* Passing an aPid parameter to LaunchChildMac will wait for the launched
* process to terminate. When the process terminates, aPid will be set to the
* pid of the terminated process to confirm that it executed successfully.
*/
void LaunchChildMac(int aArgc, char** aArgv, pid_t* aPid = nullptr);
void LaunchMacApp(int aArgc, char** aArgv);
bool LaunchElevatedUpdate(int aArgc, char** aArgv, pid_t* aPid = nullptr);
bool InstallPrivilegedHelper();
void AbortElevatedUpdate();
}
#endif