From da00f49a2e55383fa4174fea893459716ee6b38c Mon Sep 17 00:00:00 2001 From: shenmo Date: Sun, 15 Mar 2026 13:08:49 +0000 Subject: [PATCH 01/10] update src/usr/bin/amber-pm-convert. Signed-off-by: shenmo --- src/usr/bin/amber-pm-convert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/bin/amber-pm-convert b/src/usr/bin/amber-pm-convert index 07c9e55..60b6cbc 100755 --- a/src/usr/bin/amber-pm-convert +++ b/src/usr/bin/amber-pm-convert @@ -646,7 +646,7 @@ fi sudo -E chrootEnvPath="$chrootEnvPath" /var/lib/apm/apm/files/ace-run-pkg aptss clean || true sudo -E chrootEnvPath="$chrootEnvPath" /var/lib/apm/apm/files/ace-run-pkg rm -vfr /var/lib/apt/lists || true sudo -E chrootEnvPath="$chrootEnvPath" /var/lib/apm/apm/files/ace-run-pkg rm -vfr /var/lib/aptss/lists || true - sudo -E chrootEnvPath="$chrootEnvPath" /var/lib/apm/apm/files/ace-run-pkg rm -vfr /var/cache/apt/* || true + sudo -E chrootEnvPath="$chrootEnvPath" /var/lib/apm/apm/files/ace-run-pkg rm -vfr /var/cache/apt/archives/* || true #清理 .dpkg-new 文件 log.info "搜索并清理 .dpkg-new 文件..." From 8ad48ab51a84d600f1a21a674fd1892fc06fb4c7 Mon Sep 17 00:00:00 2001 From: shenmo Date: Wed, 25 Mar 2026 18:21:32 +0800 Subject: [PATCH 02/10] =?UTF-8?q?update:=20=E7=8E=B0=E5=9C=A8convert?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E4=BC=9A=E9=87=8D=E5=91=BD=E5=90=8D?= =?UTF-8?q?.dpkg-new=E8=80=8C=E4=B8=8D=E6=98=AF=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.config | 2 +- src/usr/bin/amber-pm-convert | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/build.config b/build.config index ba38035..45504a2 100644 --- a/build.config +++ b/build.config @@ -1 +1 @@ -@VERSION@=1.1.8 +@VERSION@=1.1.9 diff --git a/src/usr/bin/amber-pm-convert b/src/usr/bin/amber-pm-convert index 60b6cbc..57324aa 100755 --- a/src/usr/bin/amber-pm-convert +++ b/src/usr/bin/amber-pm-convert @@ -651,9 +651,12 @@ fi #清理 .dpkg-new 文件 log.info "搜索并清理 .dpkg-new 文件..." # 在 core 目录下查找并删除所有以 .dpkg-new 结尾的文件 -find "$CRAFT_DIR/core" -name "*.dpkg-new" 2>/dev/null | while read -r file; do - log.info "删除: $file" - sudo rm -f "$file" +# 重命名 .dpkg-new 文件(去掉后缀) +log.info "处理 .dpkg-new 文件,去掉后缀..." +find "$CRAFT_DIR/core" -name "*.dpkg-new" -type f 2>/dev/null | while read -r file; do + newfile="${file%.dpkg-new}" + log.info "重命名: $file -> $newfile" + sudo mv -f "$file" "$newfile" done # 统计清理结果 From 4d7aa499f0bd7b9bd3e54937f35846a1e5fbbdba Mon Sep 17 00:00:00 2001 From: shenmo Date: Wed, 25 Mar 2026 18:23:40 +0800 Subject: [PATCH 03/10] =?UTF-8?q?=E5=9C=A8=E6=A3=80=E6=B5=8B=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=97=B6=E6=B8=85=E7=90=86cache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/usr/bin/amber-pm-upgrade-notifier | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/bin/amber-pm-upgrade-notifier b/src/usr/bin/amber-pm-upgrade-notifier index 5aefafe..54c67a5 100755 --- a/src/usr/bin/amber-pm-upgrade-notifier +++ b/src/usr/bin/amber-pm-upgrade-notifier @@ -100,7 +100,7 @@ until ! echo $updatetext | grep -q "E:"; do updatetext=$(LANGUAGE=en_US apm update 2>&1) retry_count=$((retry_count + 1)) done - +apm clean update_app_number=$(env LANGUAGE=en_US apm list --upgradable 2>/dev/null | grep -c upgradable) echo "update_app_number is $update_app_number" From cc3e3c9c1233cb41150704c5e56a5586f385839e Mon Sep 17 00:00:00 2001 From: shenmo Date: Wed, 25 Mar 2026 18:57:08 +0800 Subject: [PATCH 04/10] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E9=87=8D=E5=91=BD=E5=90=8D=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/usr/bin/amber-pm-convert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/bin/amber-pm-convert b/src/usr/bin/amber-pm-convert index 57324aa..de6341a 100755 --- a/src/usr/bin/amber-pm-convert +++ b/src/usr/bin/amber-pm-convert @@ -653,7 +653,7 @@ log.info "搜索并清理 .dpkg-new 文件..." # 在 core 目录下查找并删除所有以 .dpkg-new 结尾的文件 # 重命名 .dpkg-new 文件(去掉后缀) log.info "处理 .dpkg-new 文件,去掉后缀..." -find "$CRAFT_DIR/core" -name "*.dpkg-new" -type f 2>/dev/null | while read -r file; do +find "$CRAFT_DIR/core" -name "*.dpkg-new" 2>/dev/null | while read -r file; do newfile="${file%.dpkg-new}" log.info "重命名: $file -> $newfile" sudo mv -f "$file" "$newfile" From e1070820ee6fd80d8994e03cb56f06c9134a576e Mon Sep 17 00:00:00 2001 From: shenmo Date: Wed, 25 Mar 2026 19:41:38 +0800 Subject: [PATCH 05/10] =?UTF-8?q?=E7=8E=B0=E5=9C=A8=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=9C=A8deepin=E4=B8=8B=E5=8F=B3=E9=94=AE=E5=8D=B8=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apm-dummy/DEBIAN/control | 2 +- apm-dummy/usr/bin/amber-pm-dstore-patch | 151 ++++++++++++------------ 2 files changed, 78 insertions(+), 75 deletions(-) diff --git a/apm-dummy/DEBIAN/control b/apm-dummy/DEBIAN/control index e776b5e..667f844 100755 --- a/apm-dummy/DEBIAN/control +++ b/apm-dummy/DEBIAN/control @@ -1,5 +1,5 @@ Package: apm -Version: 1.1.2 +Version: 1.1.3 Maintainer: shenmo Priority: optional Section: utils diff --git a/apm-dummy/usr/bin/amber-pm-dstore-patch b/apm-dummy/usr/bin/amber-pm-dstore-patch index 3ffb8f2..f16f3b9 100755 --- a/apm-dummy/usr/bin/amber-pm-dstore-patch +++ b/apm-dummy/usr/bin/amber-pm-dstore-patch @@ -1,9 +1,5 @@ #!/bin/bash - - - - enumAppInfoList() { appInfoList=() apps="/var/lib/apm" @@ -13,6 +9,7 @@ enumAppInfoList() { done echo "${appInfoList[@]}" } + linkDir() { ensureTargetDir() { targetFile=$1 @@ -26,17 +23,14 @@ linkDir() { targetDir=$(dirname "$target") find "$source" -type f | while read sourceFile; do targetFile="$targetDir/${sourceFile#$sourceDir/}" - - ensureTargetDir "$targetFile" - sourceFile=$(realpath --relative-to="$(dirname $targetFile)" "$sourceFile" ) - if [ ! -e "${targetFile}" ];then - ln -sv "$sourceFile" "$targetFile" + sourceFile=$(realpath --relative-to="$(dirname $targetFile)" "$sourceFile" ) + if [ ! -e "${targetFile}" ];then + ln -sv "$sourceFile" "$targetFile" fi done } - linkApp() { appID=$1 appEntriesDir="/var/lib/apm/$appID/entries" @@ -53,6 +47,21 @@ linkApp() { if [ ! -d "$folder" ]; then continue fi + + # 对于 applications 目录,先为所有 .desktop 文件添加必要的字段 + if [ "$folder" = "$appEntriesDir/applications" ]; then + find "$folder" -name "*.desktop" -type f | while read desktop; do + # 添加 X-APM-APPID + if ! grep -q "^X-APM-APPID=" "$desktop"; then + echo "X-APM-APPID=$appID" >> "$desktop" + fi + # 添加 X-Deepin-PreUninstall + if ! grep -q "^X-Deepin-PreUninstall=" "$desktop"; then + echo "X-Deepin-PreUninstall=amber-pm-app-uninstaller $appID" >> "$desktop" + fi + done + fi + if [ "$folder" = "$appEntriesDir/polkit" ]; then linkDir "$folder" "/usr/share/polkit-1" elif [ "$folder" = "$appEntriesDir/fonts/conf" ]; then @@ -64,32 +73,29 @@ linkApp() { } function exec_uos_package_link(){ - -for app in $(enumAppInfoList); do - linkApp "$app" & - -done -wait + for app in $(enumAppInfoList); do + linkApp "$app" & + done + wait } function exec_v23_icon_link(){ -# Fix v23 broken icon -if [ ! -d "/usr/share/icons/hicolor/scalable/apps" ];then -mkdir -p /usr/share/icons/hicolor/scalable/apps -fi + # Fix v23 broken icon + if [ ! -d "/usr/share/icons/hicolor/scalable/apps" ];then + mkdir -p /usr/share/icons/hicolor/scalable/apps + fi -for icon_root_icon_path in $(ls /usr/share/icons/*.png /usr/share/icons/*.svg 2>/dev/null) -do -target_icon_path=/usr/share/icons/hicolor/scalable/apps/$(basename ${icon_root_icon_path}) -if [ ! -e ${target_icon_path} ];then -ln -sv $(realpath --relative-to=/usr/share/icons/hicolor/scalable/apps ${icon_root_icon_path}) /usr/share/icons/hicolor/scalable/apps -fi -done + for icon_root_icon_path in $(ls /usr/share/icons/*.png /usr/share/icons/*.svg 2>/dev/null) + do + target_icon_path=/usr/share/icons/hicolor/scalable/apps/$(basename ${icon_root_icon_path}) + if [ ! -e ${target_icon_path} ];then + ln -sv $(realpath --relative-to=/usr/share/icons/hicolor/scalable/apps ${icon_root_icon_path}) /usr/share/icons/hicolor/scalable/apps + fi + done } function exec_link_clean(){ -# remove broken links in /usr/share - + # remove broken links in /usr/share find /usr/share/applications -xtype l -exec echo '{} is invalid now and going to be cleaned' \; -exec unlink {} \; 2>/dev/null & find /usr/share/icons -xtype l -exec echo '{} is invalid now and going to be cleaned' \; -exec unlink {} \; 2>/dev/null & find /usr/share/mime/packages -xtype l -exec echo '{} is invalid now and going to be cleaned' \; -exec unlink {} \; 2>/dev/null & @@ -98,77 +104,74 @@ function exec_link_clean(){ find /usr/share/fcitx -xtype l -exec echo '{} is invalid now and going to be cleaned' \; -exec unlink {} \; 2>/dev/null & find /usr/share/help -xtype l -exec echo '{} is invalid now and going to be cleaned' \; -exec unlink {} \; 2>/dev/null & find /usr/share/locale -xtype l -exec echo '{} is invalid now and going to be cleaned' \; -exec unlink {} \; 2>/dev/null & -# find /usr/lib/$(gcc -dumpmachine)/fcitx -xtype l -exec echo '{} is invalid now and going to be cleaned' \; -exec unlink {} \; 2>/dev/null & find /usr/lib/mozilla/plugins -xtype l -exec echo '{} is invalid now and going to be cleaned' \; -exec unlink {} \; 2>/dev/null & find /usr/share/polkit-1/actions -xtype l -exec echo '{} is invalid now and going to be cleaned' \; -exec unlink {} \; 2>/dev/null & find /usr/share/fonts -xtype l -exec echo '{} is invalid now and going to be cleaned' \; -exec unlink {} \; 2>/dev/null & find /etc/fonts/conf.d -xtype l -exec echo '{} is invalid now and going to be cleaned' \; -exec unlink {} \; 2>/dev/null & - - } + function exec_uos_package_update(){ update-icon-caches /usr/share/icons/* > /dev/null 2>&1 & update-desktop-database -q > /dev/null 2>&1 & update-mime-database -V /usr/share/mime > /dev/null 2>&1 & glib-compile-schemas /usr/share/glib-2.0/schemas/ > /dev/null 2>&1 & - } function exec_debian_compatibile_links(){ -# 源目录和目标目录定义 -local SOURCE_DIR="/var/lib/apm" -local TARGET_DIR="/var/lib/apm/apm/files/ace-env/var/lib/apm" + # 源目录和目标目录定义 + local SOURCE_DIR="/var/lib/apm" + local TARGET_DIR="/var/lib/apm/apm/files/ace-env/var/lib/apm" -# 检查目标目录是否存在 -if [[ ! -d "$TARGET_DIR" ]]; then - mkdir -p $TARGET_DIR -fi - -# 第一部分:为缺失的目录创建软链接 -echo "检查并创建缺失的软链接..." -for dir in "$SOURCE_DIR"/*/; do - # 获取目录名(去掉路径和尾部斜杠) - dirname=$(basename "$dir") - - # 跳过 apm 目录 - if [[ "$dirname" == "apm" ]]; then - continue + # 检查目标目录是否存在 + if [[ ! -d "$TARGET_DIR" ]]; then + mkdir -p $TARGET_DIR fi - - # 检查目标目录中是否已存在对应的软链接或目录 - target_link="$TARGET_DIR/$dirname" - if [[ ! -e "$target_link" ]]; then - echo "创建软链接: $target_link -> $dir" - ln -sv "$dir" "$target_link" - fi -done -# 第二部分:清理无效的软链接 -echo "清理无效的软链接..." -for link in "$TARGET_DIR"/*; do - # 检查是否为软链接 - if [[ -L "$link" ]]; then - # 检查软链接是否有效(指向的目标是否存在) - if [[ ! -e "$link" ]]; then - echo "删除无效软链接: $link" - rm "$link" + # 第一部分:为缺失的目录创建软链接 + echo "检查并创建缺失的软链接..." + for dir in "$SOURCE_DIR"/*/; do + # 获取目录名(去掉路径和尾部斜杠) + dirname=$(basename "$dir") + + # 跳过 apm 目录 + if [[ "$dirname" == "apm" ]]; then + continue fi - fi -done + + # 检查目标目录中是否已存在对应的软链接或目录 + target_link="$TARGET_DIR/$dirname" + if [[ ! -e "$target_link" ]]; then + echo "创建软链接: $target_link -> $dir" + ln -sv "$dir" "$target_link" + fi + done + + # 第二部分:清理无效的软链接 + echo "清理无效的软链接..." + for link in "$TARGET_DIR"/*; do + # 检查是否为软链接 + if [[ -L "$link" ]]; then + # 检查软链接是否有效(指向的目标是否存在) + if [[ ! -e "$link" ]]; then + echo "删除无效软链接: $link" + rm "$link" + fi + fi + done } + ######################################################################################### echo "----------------Running APM Dstore Patch----------------" -# execute linkApp function for each app and print output +# 执行链接操作(同时完成 .desktop 字段添加) exec_uos_package_link - -#exec_v23_icon_link +# exec_v23_icon_link exec_link_clean wait exec_uos_package_update if [[ "${IS_APM_ENV}" = "" ]];then -exec_debian_compatibile_links + exec_debian_compatibile_links fi -echo "----------------Finished----------------" +echo "----------------Finished----------------" \ No newline at end of file From e5933373d7a6081058588fbe336d10f1efb41d69 Mon Sep 17 00:00:00 2001 From: shenmo Date: Wed, 25 Mar 2026 19:42:26 +0800 Subject: [PATCH 06/10] =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=9C=A8deepin?= =?UTF-8?q?=E4=B8=8B=E5=8F=B3=E9=94=AE=E5=8D=B8=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DEBIAN/control | 2 +- src/usr/bin/amber-pm-app-uninstaller | 50 +++++++++++++++++++ .../store.spark-app.apm-uninstaller.policy | 18 +++++++ 3 files changed, 69 insertions(+), 1 deletion(-) create mode 100755 src/usr/bin/amber-pm-app-uninstaller create mode 100644 src/usr/share/polkit-1/actions/store.spark-app.apm-uninstaller.policy diff --git a/src/DEBIAN/control b/src/DEBIAN/control index e7998b2..002f729 100755 --- a/src/DEBIAN/control +++ b/src/DEBIAN/control @@ -4,7 +4,7 @@ Version: @VERSION@ Architecture: amd64 Maintainer: shenmo Installed-Size: 49000 -Depends: bubblewrap, flatpak, policykit-1 | pkexec | polkit-1 | polkit, systemd, procps,coreutils,fuse-overlayfs,xz-utils | xz,libnotify-bin,curl,xdg-user-dirs,bash +Depends: zenity | garma,bubblewrap, flatpak, policykit-1 | pkexec | polkit-1 | polkit, systemd, procps,coreutils,fuse-overlayfs,xz-utils | xz,libnotify-bin,curl,xdg-user-dirs,bash Recommends: dpkg, fakeroot, busybox Section: misc Conflicts: ace-host-integration diff --git a/src/usr/bin/amber-pm-app-uninstaller b/src/usr/bin/amber-pm-app-uninstaller new file mode 100755 index 0000000..68a76fe --- /dev/null +++ b/src/usr/bin/amber-pm-app-uninstaller @@ -0,0 +1,50 @@ +#!/bin/bash + +# ===== Log ===== +log.warn() { echo -e "[\e[33mWARN\e[0m]: \e[1m$*\e[0m"; } +log.error() { echo -e "[\e[31mERROR\e[0m]: \e[1m$*\e[0m"; } +log.info() { echo -e "[\e[96mINFO\e[0m]: \e[1m$*\e[0m"; } +log.debug() { echo -e "[\e[32mDEBUG\e[0m]: \e[1m$*\e[0m"; } + +# 获取原始用户(调用 pkexec 或 sudo 的用户) +ORIGINAL_USER="${SUDO_USER:-$USER}" +ORIGINAL_UID=$(id -u "$ORIGINAL_USER") +ORIGINAL_DISPLAY="${DISPLAY:-:0}" +ORIGINAL_XAUTHORITY="${XAUTHORITY:-$HOME/.Xauthority}" + +# 以原始用户身份运行图形界面命令 +function run_as_user() { + sudo -u "$ORIGINAL_USER" DISPLAY="$ORIGINAL_DISPLAY" XAUTHORITY="$ORIGINAL_XAUTHORITY" "$@" +} + +function zenity() { + if [[ -e /usr/bin/garma ]]; then + run_as_user garma "$@" + else + run_as_user "$(command -v zenity)" "$@" + fi +} + +function notify-send() { + local uid="$ORIGINAL_UID" + sudo -u "$ORIGINAL_USER" DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/${uid}/bus" notify-send "$@" +} + +# 如果当前不是 root,则用 pkexec 重新执行并传递必要的环境变量 +if [ "$UID" != "0" ]; then + # 保存当前环境变量,通过 env 传递给 pkexec + exec pkexec "$0" "$@" + exit $? +fi + + + +# 用户确认 +if zenity --question --text="Going to uninstall $1.\nPlease Confirm" --no-wrap; then + # 启动卸载命令(这里假设 apm 是系统命令,请根据实际情况调整) + # 注意:apm 可能不存在,可替换为 apt、dnf 等 + apm autoremove "$1" -y + ret=$? + + +fi \ No newline at end of file diff --git a/src/usr/share/polkit-1/actions/store.spark-app.apm-uninstaller.policy b/src/usr/share/polkit-1/actions/store.spark-app.apm-uninstaller.policy new file mode 100644 index 0000000..e841a24 --- /dev/null +++ b/src/usr/share/polkit-1/actions/store.spark-app.apm-uninstaller.policy @@ -0,0 +1,18 @@ + + + + Flamescion + x-package-repository + + 运行justinstallme需要权限 + 要使用ssinstall需要权限 + + yes + yes + yes + + /usr/bin/amber-pm-app-uninstaller + true + + From 8e50f721f1f4f469ded6aa4ebde350f9e28b4443 Mon Sep 17 00:00:00 2001 From: shenmo Date: Wed, 25 Mar 2026 19:49:55 +0800 Subject: [PATCH 07/10] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8D=B8=E8=BD=BD?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/usr/bin/amber-pm-app-uninstaller | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/usr/bin/amber-pm-app-uninstaller b/src/usr/bin/amber-pm-app-uninstaller index 68a76fe..ce4d76d 100755 --- a/src/usr/bin/amber-pm-app-uninstaller +++ b/src/usr/bin/amber-pm-app-uninstaller @@ -27,7 +27,7 @@ function zenity() { function notify-send() { local uid="$ORIGINAL_UID" - sudo -u "$ORIGINAL_USER" DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/${uid}/bus" notify-send "$@" + sudo -u "$ORIGINAL_USER" DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/${uid}/bus" zenity --notification --text="$@" } # 如果当前不是 root,则用 pkexec 重新执行并传递必要的环境变量 @@ -47,4 +47,6 @@ if zenity --question --text="Going to uninstall $1.\nPlease Confirm" --no-wrap; ret=$? -fi \ No newline at end of file +fi + +notify-send "Uninstall Competed" \ No newline at end of file From e95adb82632ed806ab09d9b923c81137136bcce6 Mon Sep 17 00:00:00 2001 From: shenmo Date: Wed, 25 Mar 2026 15:12:19 +0000 Subject: [PATCH 08/10] update src/usr/bin/amber-pm-app-uninstaller. Signed-off-by: shenmo --- src/usr/bin/amber-pm-app-uninstaller | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usr/bin/amber-pm-app-uninstaller b/src/usr/bin/amber-pm-app-uninstaller index ce4d76d..8b82760 100755 --- a/src/usr/bin/amber-pm-app-uninstaller +++ b/src/usr/bin/amber-pm-app-uninstaller @@ -40,7 +40,7 @@ fi # 用户确认 -if zenity --question --text="Going to uninstall $1.\nPlease Confirm" --no-wrap; then +if zenity --question --text="即将卸载 $1\n请确认" --no-wrap; then # 启动卸载命令(这里假设 apm 是系统命令,请根据实际情况调整) # 注意:apm 可能不存在,可替换为 apt、dnf 等 apm autoremove "$1" -y @@ -49,4 +49,4 @@ if zenity --question --text="Going to uninstall $1.\nPlease Confirm" --no-wrap; fi -notify-send "Uninstall Competed" \ No newline at end of file +notify-send "卸载完成" \ No newline at end of file From bdc123ba6f32e7cf303a9d4cefe567191affdd3d Mon Sep 17 00:00:00 2001 From: shenmo Date: Wed, 25 Mar 2026 15:23:14 +0000 Subject: [PATCH 09/10] update src/var/lib/apm/apm/files/bin/ace-init. Signed-off-by: shenmo --- src/var/lib/apm/apm/files/bin/ace-init | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/var/lib/apm/apm/files/bin/ace-init b/src/var/lib/apm/apm/files/bin/ace-init index 4e9a2be..c3f9358 100755 --- a/src/var/lib/apm/apm/files/bin/ace-init +++ b/src/var/lib/apm/apm/files/bin/ace-init @@ -114,7 +114,8 @@ ln -sv ../../usr/share/applications $chrootEnvPath/amber-ce-tools/data-dir/ ln -sv ../../usr/share/icons $chrootEnvPath/amber-ce-tools/data-dir/ mkdir -p $chrootEnvPath/usr/share/templates ln -sfv ../../usr/share/templates/ $chrootEnvPath/amber-ce-tools/data-dir/ - +mkdir -p $chrootEnvPath/usr/share/templates +ln -sfv ../../usr/share/mime/ $chrootEnvPath/amber-ce-tools/data-dir/ chmod 777 -R $chrootEnvPath/usr/share/icons rm -vfr $chrootEnvPath/dev/* From e0f691f35f70d92458a724ee61136d39086753d2 Mon Sep 17 00:00:00 2001 From: shenmo Date: Wed, 25 Mar 2026 15:31:44 +0000 Subject: [PATCH 10/10] =?UTF-8?q?=E5=AE=89=E8=A3=85=E8=BD=AF=E4=BB=B6?= =?UTF-8?q?=E5=90=8E=E5=88=B7=E6=96=B0=20mimetype=20=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=20=20WPS=20=E4=B8=A2=E6=96=87=E4=BB=B6=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shenmo --- src/usr/bin/apm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/usr/bin/apm b/src/usr/bin/apm index ce21752..7e8770d 100755 --- a/src/usr/bin/apm +++ b/src/usr/bin/apm @@ -357,6 +357,7 @@ case "$1" in amber-pm-debug amber-pm-dstore-patch apm-nvidia-toggle amber-pm-gxde-desktop-fix + update-mime-database /var/lib/apm/apm/files/ace-env/amber-ce-tools/data-dir/mime > /dev/null 2>&1 & ;; download|search|policy|list|update|clean|show|depends|rdepends|changelog|moo) command=$1