Skip to content

Crashes if already running #13

@steinbro

Description

@steinbro

If you try to launch rust-reader when it's already running, the second instance crashes: thread 'main' panicked at 'called Option::unwrap()on aNone value', src\main.rs:134:52

This is actually kind of the desired outcome (one instance remains running), but this behavior seems mostly accidental, and the crash has tripped me up a few times during testing. The error appears to be related to setting hotkeys, which I assume fails if that hotkey is already bound to the other instance of rust-reader.

Is there a "right" way to check if an instance is already running? Presumably setting the hotkey could fail for other reasons. FWIW, NVDA, by comparison, appears to terminate the previous instance when you launch a new one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions