fix: 修复检查到应用更新没有系统通知的问题

错误地把 sudo 改为了 su(su $USER -c xxxxxx)

Log: 还原为 sudo -u $USER xxxxxx
This commit is contained in:
zty199 2022-12-21 13:56:26 +08:00 committed by zty199
parent 65f3114078
commit 8f7ce54584

View File

@ -12,7 +12,7 @@ function notify-send() {
# Detect uid of the user
local uid=$(id -u $user)
su -u $user DISPLAY=$display DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/${uid}/bus notify-send "$@"
sudo -u $user DISPLAY=$display DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/${uid}/bus notify-send "$@"
}
# 检测网络链接畅通