From 3ff6e731048a7850639645d99d393ed615251ebf Mon Sep 17 00:00:00 2001 From: Zhanghu Date: Tue, 4 Nov 2025 12:49:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=97=A0=E6=B3=95=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- linux-x64/phserver/phserver.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-x64/phserver/phserver.sh b/linux-x64/phserver/phserver.sh index 9680206..f56358a 100755 --- a/linux-x64/phserver/phserver.sh +++ b/linux-x64/phserver/phserver.sh @@ -19,12 +19,12 @@ if [ -f /etc/os-release ]; then source /etc/os-release # 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..." # 检查 ablrun 是否可用 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 echo "Warning: ablrun command not available, trying direct execution..." "${APPIMAGE}" "$@"