添加卸载完成提示

This commit is contained in:
2026-03-25 19:49:55 +08:00
parent e5933373d7
commit 8e50f721f1

View File

@@ -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
fi
notify-send "Uninstall Competed"