mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	bpo-39580: add check for CLI installation on macOS (GH-20271)
Adds a simple check for whether or not the package is being installed in the GUI or using installer on the command line. This addresses an issue where CLI-based software management tools (such as Munki) unexpectedly open Finder windows into a GUI session during installation runs.
This commit is contained in:
		
							parent
							
								
									1931e64de1
								
							
						
					
					
						commit
						5f190d2cc6
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		|  | @ -12,8 +12,10 @@ SHARE_DOCDIR_TO_FWK="../../.." | |||
| # make link in /Applications/Python m.n/ for Finder users | ||||
| if [ -d "${APPDIR}" ]; then | ||||
|     ln -fhs "${FWK_DOCDIR}/index.html" "${APPDIR}/Python Documentation.html" | ||||
|     if [ "${COMMAND_LINE_INSTALL}" != 1 ]; then | ||||
|         open "${APPDIR}" || true  # open the applications folder | ||||
|     fi | ||||
| fi | ||||
| 
 | ||||
| # make share/doc link in framework for command line users | ||||
| if [ -d "${SHARE_DIR}" ]; then | ||||
|  |  | |||
|  | @ -0,0 +1,2 @@ | |||
| Avoid opening Finder window if running installer from the command line. | ||||
| Patch contributed by Rick Heil. | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Rick Heil
						Rick Heil