You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added user activity check to notification system to prevent sending
notifications when user is not actively using the system. The new
isUserActive() method queries systemd-logind via D-Bus to determine if
the current user session is active and not remote.
The change ensures notifications are only shown when the user is present
and actively using the system, preventing unnecessary distractions
during inactive periods or remote sessions. This improves user
experience by reducing notification spam when the user cannot see them.
Log: Network notifications now respect user activity status
Influence:
1. Test network notifications appear when user is actively using the
system
2. Verify notifications are suppressed when user session is inactive
3. Test notification behavior during remote desktop sessions
4. Verify notification suppression when system is locked or user is away
5. Test different network state changes (connection/disconnection/VPN
events)
fix: 防止用户非活动时发送通知
在通知系统中添加用户活动状态检查,防止在用户未主动使用系统时发送通知。新
增的 isUserActive() 方法通过 D-Bus 查询 systemd-logind 来确定当前用户会
话是否活跃且非远程会话。
该变更确保通知仅在用户在场且主动使用系统时显示,避免在用户非活动期间或远
程会话时产生不必要的干扰。通过减少用户无法看到通知时的通知垃圾,提升了用
户体验。
Log: 网络通知现在会尊重用户活动状态
Influence:
1. 测试用户主动使用系统时网络通知是否正常显示
2. 验证用户会话非活动时通知是否被抑制
3. 测试远程桌面会话期间的通知行为
4. 验证系统锁定或用户离开时通知抑制功能
5. 测试不同网络状态变化(连接/断开/VPN事件)的通知行为
PMS: BUG-349057
0 commit comments