mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-06 19:32:22 +08:00
fix: 修复检查到应用更新没有系统通知的问题
错误地把 sudo 改为了 su(su $USER -c xxxxxx) Log: 还原为 sudo -u $USER xxxxxx
This commit is contained in:
parent
65f3114078
commit
8f7ce54584
@ -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 "$@"
|
||||
}
|
||||
|
||||
# 检测网络链接畅通
|
||||
|
Loading…
x
Reference in New Issue
Block a user