From c07298de3b4f9d99265189c299d57af72bdb7b74 Mon Sep 17 00:00:00 2001 From: Zhanghu Date: Thu, 6 Nov 2025 14:07:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20ablrun=20=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- linux-x64/phserver/phserver.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/linux-x64/phserver/phserver.sh b/linux-x64/phserver/phserver.sh index f56358a..6074c49 100755 --- a/linux-x64/phserver/phserver.sh +++ b/linux-x64/phserver/phserver.sh @@ -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