Skip to content
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

[Help] How to set Scrcpy ENV #355

Open
littlexiang opened this issue Jan 7, 2025 · 2 comments
Open

[Help] How to set Scrcpy ENV #355

littlexiang opened this issue Jan 7, 2025 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@littlexiang
Copy link

在连接远程adb server时, 需要使用ENV设置

# in bash
export ADB_SERVER_SOCKET=tcp:192.168.1.2:5037
scrcpy --tunnel-host=192.168.1.2

https://github.com/Genymobile/scrcpy/blob/cac8e9c821b9b8314d57e84ccbf685929af08794/doc/tunnels.md

命令行参数可以在配置中修改, 求问ENV环境变量如何设置?

已尝试过使用ENV启动 Escrcpy, 但是环境变量似乎不会传递

@littlexiang littlexiang added the help wanted Extra attention is needed label Jan 7, 2025
@littlexiang
Copy link
Author

尝试将ENV写在scrcpy bin路径中, 也不行
image

@viarotel viarotel added the enhancement New feature or request label Jan 8, 2025
@viarotel
Copy link
Collaborator

viarotel commented Jan 8, 2025

该功能可能需要硬编码,我会想办法尝试解决该问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants