-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When multiple devices are present, let the user pick one. #3137
Comments
I already considered that, but scrcpy could not rely on user input, the user may start it without a console (that's quite common). And even when a console is available, it may be started from a script which does not expect it to wait. |
#3005 added In your specific case, that would allow to call |
Fixed by #3140. |
Thanks for taking the time to reply, and that you already had given it some thought :) Now that I understand better the reasons for not implementing a feature like this, feel free to close this. I'm happy I discovered something else totally unintentionally 😅 |
What I've seen other libraries do in this case is that you pass an argument to the command, such as |
easy to use when multiple devices connected, see Genymobile#3137
Is your feature request related to a problem? Please describe.
I'm always frustrated when I run
scrcpy
only to realize I had multiple devices/emulators connected and then need to copy the serial of one to connect to the device of my choice.Describe the solution you'd like
Instead of yielding an error, output the list of devices with each device prefixed by a number and then have scrcpy await user input for which device to use:
The copy could perhaps be a bit better.
Describe alternatives you've considered
An alternate solution would perhaps be if I wrote my own script which wraps the scrcpy tool with logic based on the scrcpy output, but that could likely break at any time.
Additional context
N/A
The text was updated successfully, but these errors were encountered: