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
dunst internally stores timeouts in microseconds, in a signed 32 bit integer, which wraps around at 2147484, which corresponds to ~40 minutes. Having timeouts longer than that is not unreasonable, so the wrapping should be fixed.
notify-send -t 2147483 foo
will stay on the screen for 35 minutes, while
notify-send -t 2147484 foo
will use the default (for me, 10s)
Installation info
Version: Dunst - A customizable and lightweight notification-daemon 1.3.2
Install type: package
Distro and version: Fedora 30
The text was updated successfully, but these errors were encountered:
I prompted @hbakken to created this issue after a short discussion about the issue on IRC.
What completely flew over my head in that discussion was that it was overflowing on the 32 bit boundary not the 64 bit one. After working that out it was dead simple to pinpoint this, and it got me wondering how I missed that in the review 🤦♂️.
@bebehei Posting the patch here since you self-assigned this, not sure if you're preparing a PR with anything else.
dunst internally stores timeouts in microseconds, in a signed 32 bit integer, which wraps around at 2147484, which corresponds to ~40 minutes. Having timeouts longer than that is not unreasonable, so the wrapping should be fixed.
notify-send -t 2147483 foo
will stay on the screen for 35 minutes, while
notify-send -t 2147484 foo
will use the default (for me, 10s)
Installation info
The text was updated successfully, but these errors were encountered: