mirror of
https://github.com/python/cpython.git
synced 2024-11-24 08:52:25 +01:00
549e628272
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.
70 lines
2.1 KiB
XML
70 lines
2.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>CFBundleDevelopmentRegion</key>
|
|
<string>en</string>
|
|
<key>CFBundleDocumentTypes</key>
|
|
<array>
|
|
<dict>
|
|
<key>CFBundleTypeExtensions</key>
|
|
<array>
|
|
<string>py</string>
|
|
<string>pyw</string>
|
|
</array>
|
|
<key>CFBundleTypeIconFile</key>
|
|
<string>PythonSource.icns</string>
|
|
<key>CFBundleTypeName</key>
|
|
<string>Python Script</string>
|
|
<key>CFBundleTypeRole</key>
|
|
<string>Viewer</string>
|
|
<key>NSDocumentClass</key>
|
|
<string>MyDocument</string>
|
|
</dict>
|
|
<dict>
|
|
<key>CFBundleTypeExtensions</key>
|
|
<array>
|
|
<string>pyc</string>
|
|
<string>pyo</string>
|
|
</array>
|
|
<key>CFBundleTypeIconFile</key>
|
|
<string>PythonCompiled.icns</string>
|
|
<key>CFBundleTypeName</key>
|
|
<string>Python Bytecode Document</string>
|
|
<key>CFBundleTypeRole</key>
|
|
<string>Viewer</string>
|
|
<key>NSDocumentClass</key>
|
|
<string>MyDocument</string>
|
|
</dict>
|
|
</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>
|
|
<string>PythonLauncher.icns</string>
|
|
<key>CFBundleIdentifier</key>
|
|
<string>org.python.PythonLauncher</string>
|
|
<key>CFBundleInfoDictionaryVersion</key>
|
|
<string>6.0</string>
|
|
<key>CFBundleName</key>
|
|
<string>Python Launcher</string>
|
|
<key>CFBundlePackageType</key>
|
|
<string>APPL</string>
|
|
<key>CFBundleShortVersionString</key>
|
|
<string>%VERSION%</string>
|
|
<key>CFBundleSignature</key>
|
|
<string>PytL</string>
|
|
<key>CFBundleVersion</key>
|
|
<string>%VERSION%</string>
|
|
<key>NSMainNibFile</key>
|
|
<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>
|