-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
If you try to launch rust-reader when it's already running, the second instance crashes: thread 'main' panicked at 'called
Option::unwrap()on a
None 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
Labels
No labels