Open tsankuanglee opened 1 year ago
This one is less strange, but it creates a similar error as well:
alt + ctrl + shift + super + e
@escape && touch /tmp/test && @enter screenshot
mode screenshot swallow
5
@escape && touch /tmp/test.5
endmode
error:
thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 18446744073709551615', swhkd/src/daemon.rs:318:68
Version Information
uname -a
):Linux hostname 6.4.11-arch2-1 #1 SMP PREEMPT_DYNAMIC Sat, 19 Aug 2023 15:38:34 +0000 x86_64 GNU/Linux
swhkd -V
): 1.2.1Describe the bug
In the process of trying to do #219 , I accidentally found that a wrong config could cause index out of bounds.
Expected behavior
Even though the config is wrong, we expect swhkd to catch it and quit gracefully.
Actual behavior
See log:
To Reproduce
/home/user/.config/swhkd/swhkdrc.test.conf
startup script
keys pressed
alt+ctrl+shift+super+e The error occurred as soon as these keys are down.