1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2026-06-17 01:56:10 -05:00
Files
VeraCrypt/src/Setup/Linux/veracrypt.AppDir/AppRun
T
2026-06-06 23:45:27 +09:00

18 lines
605 B
Bash
Executable File

#!/bin/sh
# Get the directory where AppRun is located
APPDIR=$(dirname "$(readlink -f "$0")")
# Prefer libraries bundled inside the AppImage. This lets the official
# AppImage carry the FUSE userspace library required by its VeraCrypt binary
# on systems where that library is not installed by default.
if [ -d "${APPDIR}/usr/lib" ]; then
if [ -n "${LD_LIBRARY_PATH:-}" ]; then
export LD_LIBRARY_PATH="${APPDIR}/usr/lib:${LD_LIBRARY_PATH}"
else
export LD_LIBRARY_PATH="${APPDIR}/usr/lib"
fi
fi
# Execute the main VeraCrypt application
exec "${APPDIR}/usr/bin/veracrypt" "$@"