tildearrow / input-modifier

uinput based key bindings and macros tool for Linux
GNU General Public License v2.0
20 stars 6 forks source link

invalid config file exception not handled which causes abort #8

Closed LeoKira997 closed 2 years ago

LeoKira997 commented 2 years ago

this is what happens when i try to run imodd

[info] input-modifier v1.3.4 [info] scanning devices... [info] starting device listener... [info] initializing socket interface... [info] removing remnants of dead daemon... [info] initializing devices... terminate called after throwing an instance of 'nlohmann::detail::parse_error' what(): [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal Aborted (core dumped)

LeoKira997 commented 2 years ago

disregard, deleted config files and it worked fine, hate how i always figure things out after reporting/asking someone before they can respond...

tildearrow commented 2 years ago

Wait a moment. Please provide your configuration file as this is still a bug (unable to handle corrupted configuration). Never mind. Bug fixed regardless by handling failure to parse config.