mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
bpo-40477: macOS Python Launcher app fixes for recent macOS releases (GH-30348) (GH-30349)
This change solves two problems encountered by users of the macOS Python Launcher app on recent macOS releases (10.14+):
- The launcher app was no longer able to launch the macOS Terminal.app to run a script.
- Even if Terminal.app was already launched, the launcher app was unable to send an Apple Event to Terminal.app to open and run Python with the desired .py file.
(cherry picked from commit 549e628272
)
Co-authored-by: Ned Deily <nad@python.org>
This commit is contained in:
parent
74af713538
commit
b312794de0
3 changed files with 8 additions and 2 deletions
|
@ -19,7 +19,7 @@ doscript(const char *command)
|
|||
AEDesc desc;
|
||||
OSStatus err;
|
||||
|
||||
[[NSWorkspace sharedWorkspace] launchApplication:@"/Applications/Utilities/Terminal.app/"];
|
||||
[[NSWorkspace sharedWorkspace] launchApplication:@"Terminal.app"];
|
||||
|
||||
// Build event
|
||||
err = AEBuildAppleEvent(kAECoreSuite, kAEDoScript,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue