Visitar URL original
bpo-40477: macOS Python Launcher app fixes for recent macOS releases by ned-deily · Pull Request #30348 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20220111105327/https://github.com/python/cpython/pull/30348/files
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-40477: macOS Python Launcher app fixes for recent macOS releases #30348

Merged
merged 1 commit into from Jan 3, 2022
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<string>en</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
@@ -39,6 +39,8 @@
</array>
<key>CFBundleExecutable</key>
<string>Python Launcher</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2001-2022 Python Software Foundation</string>
<key>CFBundleGetInfoString</key>
<string>%VERSION%, © 2001-2022 Python Software Foundation</string>
<key>CFBundleIconFile</key>
@@ -61,5 +63,7 @@
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSAppleEventsUsageDescription</key>
<string>Python Launcher uses Apple events to launch your Python script in a Terminal window.</string>
</dict>
</plist>
@@ -19,7 +19,7 @@
AEDesc desc;
OSStatus err;

[[NSWorkspace sharedWorkspace] launchApplication:@"/Applications/Utilities/Terminal.app/"];
[[NSWorkspace sharedWorkspace] launchApplication:@"Terminal.app"];

// Build event
err = AEBuildAppleEvent(kAECoreSuite, kAEDoScript,
@@ -0,0 +1,2 @@
The Python Launcher app for macOS now properly launches scripts and, if
necessary, the Terminal app when running on recent macOS releases.