1
0
Fork 0
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:
Theodore Dubois 2017-12-13 09:52:36 -08:00 committed by Joe Wilm
parent 9bdac6b50a
commit 94caa7667d
7 changed files with 67 additions and 18 deletions

View file

@ -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>

View file

@ -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"