Description
Classification:
Bug
Reproducibility:
Always
Version
AutoKey version: 0.95.10, git master, git develop
Used GUI (Gtk, Qt, or both): GTK
Summary
The GTK GUI hangs indefinitely, if two notifications are generated in quick succession. This happens, if a failing script is triggered multiple times.
GTK outputs this on the log:
gi.repository.GLib.GError: g-io-error-quark: GDBus.Error:org.freedesktop.Notifications.Error.ExcessNotificationGeneration: Created too many similar notifications in quick succession (36)
Steps to Reproduce (if applicable)
- Have a Script that raises an Exception
- Open it in the GTK GUI
- Double click the "Run selected Script" button
Expected Results
- One or two notifications pop up. Autokey stays usable.
Actual Results
- The GUI locks up completely. The expansion service still works, but the GUI is unusable.
Notes
This is GTK-GUI specific. In the Qt GUI, multiple notifications work without a problem.
To fix this, either add a notification scheduler or simply add a timestamp that gets updated whenever a notification is successfully sent. Suppress further notifications, if the last timestamp is below the allowed minimum notification delay.