Replies: 1 comment
-
Having an application "restart" itself - in the most literal sense - can often be complicated. There's a bunch of thread and memory states that need to get cleaned up and restarted in a nicer way vs. just aborting and starting over from a new process. The typical way to do it is to have a monitor that watches for the process dying and automatically restarts it. In Linux, systemd is one such monitor that can restart Kanata if it dies. I don't know the Windows service system well enough to suggest a Windows solution. Ignoring Windows-specific solutions though, it wouldn't be too difficult to write up a "wrapper" Kanata process or script that starts Kanata and watches for Kanata stopping, and restarts Kanata whenever that happens. It wouldn't be performance sensitive either, so it can be in whatever programming language you want if you know any and want to try writing it yourself. |
Beta Was this translation helpful? Give feedback.
-
I sometimes experiment with mating Kanata with other key remapping tools like AHK, etc., and situations arise from time to time when Kanata gets into strange states that are hard to reproduce, and I can't use the keyboard normally. For exaple, modifier keys can sometimes get "stuck", in which case it's enough to just press and release a "stuck" key (that is - if you haven't remapped it to do something different, haha).
layer-while-held
layers can also get stuck sometimes, etc. Ultimately, Ctrl+Space+Esc always fixes everything of course.I was wondering if there's a way (or if it's possible to implement one) to get Kanata to restart itself by pressing a single key combination - much like Ctrl+Space+Esc, but restarting instead of just killing. This would greatly reduce the hassle in case things go wrong IMO.
Beta Was this translation helpful? Give feedback.
All reactions