From a7f8817969fa61c214542c987650c09eb674f705 Mon Sep 17 00:00:00 2001 From: shenmo Date: Thu, 27 Nov 2025 07:12:03 +0000 Subject: [PATCH] update src/usr/bin/amber-pm-convert. Signed-off-by: shenmo --- src/usr/bin/amber-pm-convert | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/usr/bin/amber-pm-convert b/src/usr/bin/amber-pm-convert index 11c58ce..0d30f89 100755 --- a/src/usr/bin/amber-pm-convert +++ b/src/usr/bin/amber-pm-convert @@ -464,9 +464,11 @@ process_desktop_file() { # 新增:精确路径检查 local apps_path1="/usr/share/applications" local apps_path2="/opt/apps/${ORIG_PKGNAME}/entries/applications" + local apps_path3="/usr/local/share/applications" if [[ ! "$desktop_file" =~ ^.*${apps_path1}/.*\.desktop$ ]] && - [[ ! "$desktop_file" =~ ^.*${apps_path2}/.*\.desktop$ ]]; then + [[ ! "$desktop_file" =~ ^.*${apps_path2}/.*\.desktop$ ]] && + [[ ! "$desktop_file" =~ ^.*${apps_path3}/.*\.desktop$ ]]; then log.debug "跳过非应用程序 desktop 文件: $desktop_file" return 0 fi