When the daemon is started via `sudo vietc-daemon` from a terminal, is_sudo_process would see sudo( in the terminal's process tree and disable the engine, making all keystrokes pass through untransformed. Now is_sudo_process builds the daemon's ancestor PID chain and skips any sudo process that is an ancestor of the daemon itself. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||