修正无法运行的问题
This commit is contained in:
@@ -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}" "$@"
|
||||
|
||||
Reference in New Issue
Block a user