mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
Ensure LD_LIBRARY_PATH is set appropriately
This commit is contained in:

committed by
Mitchell Hashimoto

parent
f1f23e1c7d
commit
ec8e7d9d86
@ -2,5 +2,16 @@
|
||||
|
||||
export XDG_CONFIG_HOME="$SNAP_REAL_HOME/.config"
|
||||
export XDG_DATA_HOME="$SNAP_REAL_HOME/.local/share"
|
||||
export HOME="$SNAP_REAL_HOME"
|
||||
|
||||
if [ "$SNAP_ARCH" = "amd64" ]; then
|
||||
ARCH="x86_64-linux-gnu"
|
||||
elif [ "$SNAP_ARCH" = "arm64" ]; then
|
||||
ARCH="aarch64-linux-gnu"
|
||||
else
|
||||
ARCH="$SNAP_ARCH-linux-gnu"
|
||||
fi
|
||||
|
||||
export LD_LIBRARY_PATH=$SNAP/usr/lib/$ARCH${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
|
||||
|
||||
exec "$@"
|
||||
|
Reference in New Issue
Block a user