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