Commit c6a6f37
committed
fix(notifications): prevent non-critical expireTimeout=0 from persisting forever
Notifications with expire-timeout=0 (freedesktop spec: never expire)
now only persist indefinitely when urgency is Critical. Non-critical
notifications with expire-timeout=0 (e.g. YubiKey/pam_u2f touch prompts)
fall back to the DMS per-urgency timeout instead of persisting until
manually dismissed.
Root cause: the timer interval honored appTimeout >= 0, treating
expire-timeout=0 literally. Combined with _initWrapperPersistence
marking timeoutMs===0 as persistent, these notifications were never
auto-dismissed, never destroyed, and never removed from the queue.
Fixes: YubiKey/pam_u2f touch notifications, and any other sender that
uses expire-timeout=0 for non-critical notifications.1 parent 71b1901 commit c6a6f37
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
776 | | - | |
| 776 | + | |
777 | 777 | | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
778 | 782 | | |
779 | 783 | | |
780 | 784 | | |
| |||
0 commit comments