barry-ran / QtScrcpy

Android real-time display control software
https://blog.csdn.net/rankun1/article/details/87970523
Apache License 2.0
18.65k stars 2.51k forks source link

KeyMapping Scripts Fail to Load #645

Open ShiroyukiX opened 2 years ago

ShiroyukiX commented 2 years ago

(I'm using the AUR qtscrcpy version since qtscrcpy-git fails to build, as well as using KDE as my DE. Not sure if this info is needed but mentioning it here just in case.)

qtscrcpy recognizes the example scripts but fails to load any of them when selected. I have uninstalled and reinstalled the program multiple times to check if that solves the issue to no avail.

Is there something I'm missing or do I have to run the program in a particular way?

Edit: I have noticed the scripts do load when I run qtscrcpy with the sudo command, however I haven't seen any mention on the github page that such a requirement is necessary. Am I missing something?

ilcpm commented 2 years ago

try press ~ key to use the script, if not, all the keys will be recognized as the keyboard inputs like your typing through the physical keyboard

ShiroyukiX commented 1 year ago

try press ~ key to use the script, if not, all the keys will be recognized as the keyboard inputs like your typing through the physical keyboard

That won't work. The issue is after I refresh, the program always fails to apply the script in question; this goes for custom and pre-packaged scripts. Pressing ~ results in a failure, so my issue appears to be something else.

This is the error message in question (this is using my custom script, but it applies to all): open file failed:azurlane.json

The only solution I have seen is to run qtscrcpy with sudo. I'm not sure if the problem occurs only for me or what, but I would like to use the program w/o sudo.