Closed Minabsapi closed 2 years ago
I can confirm that the option "suppress = True" has often led to an Xserver crash, after which I have to re-login. I'm using Linux Mint 19. It doesn't happen immediately after starting the listener, but a short random time later.
Thank you for your report, and sorry for this late reply.
The PR #382 may contain a fix for this. Is it possible for you to test?
I would definitely like to test this on my local computer. How do I copy a version of pynput including the requested changes?
To install a version of pynput with the proposed fix:
pip install https://github.com/moses-palmer/pynput/archive/fixup-xorg-display-cleanup.zip
Please note that this will likely require you to install Python development libraries on your system.
This fix has now been added to the master branch, so I will close this issue. If the problem persist, please reopen.
Description I wrote a script using notably
pynput
andcurses
. To mitigate a terminal input issue when in a curses window I passed the variablesuppress = True
to pynput's listener, which crashes the X server after some input.Here are the relevant parts of my script
I redirected my script's stderr to a log file and this is what it captured:
Platform and pynput version GNU/Linux Ubuntu 20.04 pynput 1.6.8
Note Might be related to issue #231, though not using
exit()
in the handler didn't mitigate the issue