修改 ablrun 路径
This commit is contained in:
@@ -22,11 +22,13 @@ if [ -f /etc/os-release ]; then
|
||||
if [[ "${NAME}" == "uos" ]] && [[ "${VERSION_ID}" == "20" ]]; then
|
||||
echo "Detected UOS V20, running with ablrun..."
|
||||
|
||||
bash# 定义 ablrun 的完整路径
|
||||
ABLRUN="$(dirname "${BASH_SOURCE[0]}")/abl_portable/usr/bin/ablrun"
|
||||
# 检查 ablrun 是否可用
|
||||
if command -v ablrun &> /dev/null; then
|
||||
$(dirname "${BASH_SOURCE[0]}")/abl_portable/usr/bin/ablrun "${APPIMAGE}" "$@"
|
||||
if [[ -x "${ABLRUN}" ]]; then
|
||||
"${ABLRUN}" "${APPIMAGE}" "$@"
|
||||
else
|
||||
echo "Warning: ablrun command not available, trying direct execution..."
|
||||
echo "Warning: ablrun not found at ${ABLRUN}, trying direct execution..."
|
||||
"${APPIMAGE}" "$@"
|
||||
fi
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user