snap: export TERMINFO_DIRS so child shells find xterm-ghostty

Without this, shells spawned by ghostty cannot find the xterm-ghostty
terminfo entry because ncurses only searches standard system paths.
The snap's terminfo lives inside the snap sandbox and is inaccessible
unless TERMINFO_DIRS is set explicitly.
This commit is contained in:
Aaron Ang
2026-04-15 22:42:51 -04:00
parent 9e080c5a40
commit 41878d6f79

View File

@@ -50,6 +50,7 @@ export XLOCALEDIR="${SNAP}/usr/share/X11/locale"
export GTK_PATH="$SNAP/usr/lib/$ARCH/gtk-4.0"
export GIO_MODULE_DIR="$SNAP/usr/lib/$ARCH/gio/modules"
unset GIO_EXTRA_MODULES
export TERMINFO_DIRS="${SNAP}/share/terminfo${TERMINFO_DIRS:+:$TERMINFO_DIRS}"
# Gdk-pixbuf loaders
mkdir -p "$SNAP_USER_COMMON/.cache"