修正无法运行的问题

This commit is contained in:
Zhanghu
2025-11-04 12:49:37 +08:00
parent fbaa7690c9
commit 3ff6e73104

View File

@@ -19,12 +19,12 @@ if [ -f /etc/os-release ]; then
source /etc/os-release source /etc/os-release
# Detect if it's UOS V20 # Detect if it's UOS V20
if [[ "${name}" == "uos" ]] && [[ "${VERSION_ID}" == "20" ]]; then if [[ "${NAME}" == "uos" ]] && [[ "${VERSION_ID}" == "20" ]]; then
echo "Detected UOS V20, running with ablrun..." echo "Detected UOS V20, running with ablrun..."
# 检查 ablrun 是否可用 # 检查 ablrun 是否可用
if command -v ablrun &> /dev/null; then if command -v ablrun &> /dev/null; then
$(dirname "${BASH_SOURCE[0]}")/usr/bin/ablrun "${APPIMAGE}" "$@" $(dirname "${BASH_SOURCE[0]}")/abl_portable/usr/bin/ablrun "${APPIMAGE}" "$@"
else else
echo "Warning: ablrun command not available, trying direct execution..." echo "Warning: ablrun command not available, trying direct execution..."
"${APPIMAGE}" "$@" "${APPIMAGE}" "$@"