Riey / kime

Korean IME
GNU General Public License v3.0
523 stars 53 forks source link

kime.pid has a newline #685

Open elbaro opened 2 months ago

elbaro commented 2 months ago
❯ ps -ef | rg kime
user       2266    1882  0 05:24 ?        00:00:00 kime #@
user       2268    2266  0 05:24 ?        00:00:00 kime-xim
user       2271    2266  0 05:24 ?        00:00:00 kime-indicator
user       7153    3109  0 05:29 pts/0    00:00:00 rg kime

~
❯ kime -k
kill: cannot find process "2266
"
[ERROR] kill return: exit status: 1
[ERROR] Can't kill daemon: kill command failed
Error: ()

kime.pid has a newline, let pid = std::fs::read_to_string(pid)?; is 2266\n.