mirror of
https://gitee.com/amber-ce/amber-pm
synced 2026-05-14 02:00:20 +08:00
添加卸载完成提示
This commit is contained in:
@@ -27,7 +27,7 @@ function zenity() {
|
|||||||
|
|
||||||
function notify-send() {
|
function notify-send() {
|
||||||
local uid="$ORIGINAL_UID"
|
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 重新执行并传递必要的环境变量
|
# 如果当前不是 root,则用 pkexec 重新执行并传递必要的环境变量
|
||||||
@@ -48,3 +48,5 @@ if zenity --question --text="Going to uninstall $1.\nPlease Confirm" --no-wrap;
|
|||||||
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
notify-send "Uninstall Competed"
|
||||||
Reference in New Issue
Block a user