asweigart / pyautogui

A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
BSD 3-Clause "New" or "Revised" License
10.22k stars 1.24k forks source link

Cannot write < #730

Open Breadleaf opened 2 years ago

Breadleaf commented 2 years ago

For some reason when I use pyautogui.write and pyautogui.press to type < it will instead print >. 5.10.136-1-MANJARO #1 SMP PREEMPT Thu Aug 11 13:14:01 UTC 2022 x86_64 GNU/Linux pyautogui.os -> <module 'os' from '/usr/lib/python3.10/os.py'>

Breadleaf commented 2 years ago

image

r2dev2 commented 1 year ago

My bad for making duplicate issue #749

Reposting a quick dirty fix from that issue:

I fixed locally by changing

https://github.com/asweigart/pyautogui/blob/667161b072e89b4a25b806c5f2ca616e6c0aeec3/pyautogui/_pyautogui_x11.py#L282

to be '<': 0x3b

This isn't a production-ready fix but it should work for @Breadleaf as they use manjaro which is arch-based and this solution works for arch linux + xfce.