octalmage / robotjs

Node.js Desktop Automation.
http://robotjs.io
MIT License
12.3k stars 949 forks source link

robotjs not working outside electronJs #635

Open haffoudhi opened 3 years ago

haffoudhi commented 3 years ago

We have an electronJs application, running in all Operating systems (windows, macOS, ubuntu and fedora) we are using robotJs to trigger "control+v" and paste text into other applications on the system. the feature is working in all systems except fedora. robotJs work fine on our electronJs application, it paste text there, but once we put the cursor in another applications, robotJs does not work. text is not pasted there, and there's no error in the application. There's an exception, which is Chrome, our application work fine with chrome, it paste text without any issues there. other than chrome we tried most text editors and firefox, but didn't work with any of them. does anyone know what's the problem in our system and how to fix it?

we are using fedora 33 and 32, electronJs v11, nodeJs v15. we have installed fedora in virtualbox and physical machines. but in vain.