From 8e50f721f1f4f469ded6aa4ebde350f9e28b4443 Mon Sep 17 00:00:00 2001 From: shenmo Date: Wed, 25 Mar 2026 19:49:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8D=B8=E8=BD=BD=E5=AE=8C?= =?UTF-8?q?=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