jinliu / kdotool

xdotool-like for KDE Wayland
Apache License 2.0
107 stars 7 forks source link

Call kdotool rapidly will make journalctl generating huge amount of garbage data. #13

Closed Neutron3529 closed 1 week ago

Neutron3529 commented 2 weeks ago

Since KWin decided to use journalctl to record script output, if we want to record mouse locaion rapidly (e.g., using /dev/uinput to simulate a absolute mouse move), the log file blows up to hundered MBs.

I wonder if there is some alternative approaches that is feasable. For example, running a backend with root permissions that could obtain kwin's mouse location with libc::process_vm_readv.

I performed some attempt, and got this

Feel free to copy the code into your project:)

jinliu commented 1 week ago

I'll change it to only generate log when --debug is specified. Hopefully that helps.