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