Skip to content

Raise a warning and avoid blocking GUI if some meta/macro/etc. get into an infinite loop #1806

@user202729

Description

@user202729

Is your feature request related to a problem? Please describe.

my plugin plover-run-shell can be accidentally used to run something that blocks forever like sleep 100, this will make the GUI unresponsive

Describe the solution you'd like

raise a warning if a single command takes say more than 1s to be processed (don't think it's possible to do much about it other than killing Plover though)

(should work as long as the GIL doesn't get taken)

Describe alternatives you've considered

Additional context

first encountered when a xdotool windowmove freeze for inexplicable reasons.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions