mirror of
				https://github.com/alacritty/alacritty.git
				synced 2025-10-30 23:36:53 -04:00 
			
		
		
		
	Remove the launcher and set the locale/current directory in alacritty (#879)
This commit is contained in:
		
							parent
							
								
									9bdac6b50a
								
							
						
					
					
						commit
						94caa7667d
					
				
					 7 changed files with 67 additions and 18 deletions
				
			
		| 
						 | 
				
			
			@ -5,9 +5,9 @@
 | 
			
		|||
    <key>CFBundleDisplayName</key>
 | 
			
		||||
    <string>Alacritty</string>
 | 
			
		||||
    <key>CFBundleExecutable</key>
 | 
			
		||||
    <string>launcher</string>
 | 
			
		||||
    <!-- <key>CFBundleIdentifier</key> -->
 | 
			
		||||
    <!-- <string>alacritty</string> -->
 | 
			
		||||
    <string>alacritty</string>
 | 
			
		||||
    <key>CFBundleIdentifier</key>
 | 
			
		||||
    <string>io.alacritty</string>
 | 
			
		||||
    <key>CFBundleName</key>
 | 
			
		||||
    <string>Alacritty</string>
 | 
			
		||||
    <key>CFBundleIconFile</key>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,15 +0,0 @@
 | 
			
		|||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
# Dynamically discover canonical path to alacritty binary
 | 
			
		||||
BIN_DIR=$(cd "$(dirname "$0")"; pwd)
 | 
			
		||||
 | 
			
		||||
# Query OS for locale and setup alacritty shell to conform
 | 
			
		||||
ALACRITTY_LOCALE="$(osascript -e "return user locale of (get system info)")"
 | 
			
		||||
export LANG="${ALACRITTY_LOCALE}.UTF-8"
 | 
			
		||||
export LC_CTYPE="${ALACRITTY_LOCALE}.UTF-8"
 | 
			
		||||
 | 
			
		||||
# Start alacritty in user's home directory
 | 
			
		||||
cd "$HOME"
 | 
			
		||||
 | 
			
		||||
# Engage
 | 
			
		||||
exec "$BIN_DIR/alacritty"
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue