sardemff7 / eventd

A simple daemon to track remote or local events and do actions the user wants to
https://www.eventd.org
Other
46 stars 4 forks source link

notify: allow custom timeouts #28

Closed mathstuf closed 8 years ago

mathstuf commented 8 years ago

Not all event sources necessarily allow setting this. Instead of requiring sources to get it right, allow notifications to be up for a configurable amount of time.

Signed-off-by: Ben Boeckel mathstuf@gmail.com

sardemff7 commented 8 years ago

No source event need a setting for it, this is a core event configuration.

If the org.freedesktop.Notifications interface allows to set timeout by design and the fdo-notifications plugin is the most compliant implementation, so it has to support that. EvP once had a TIMEOUT message that I removed because I consider that as a local configuration.

In your .event file, just use that to set the timeout for a specific event (syntax from master):

[Event my-category]
# 30s timeout
Timeout=30000