Comments (9)
it does not on my Debian
TIL. I just tried this out on Debian and I'm getting the same result as you. It looks like this is because Debian uses its own implementation of which
while Arch uses which
from coreutils.
from scrcpy.
Currently, it does not work over adb connect
.
What if you use it over usb instead?
from scrcpy.
exec: No such file or directory
Are you sure that adb is in PATH?
from scrcpy.
More specifically, the issue causing is that exec expects your PATH to be fully expanded. Apparently, tilde expansion is a feature of the shell.
Here are two workarounds that work for me:
- Manually expand the tildes in your PATH:
PATH="$PATH:$HOME/Android/Sdk/platform-tools" scrcpy
- Set the ADB environment variable before calling scrcpy:
ADB=$(which adb) scrcpy
from scrcpy.
Apparently, tilde expansion is a feature of the shell.
Absolutely.
Manually expand the tildes in your PATH
Yes, that's a requirement.
Set the ADB environment variable before calling scrcpy:
ADB=$(which adb) scrcpy
I think this should not change anything: if which adb
gives a result, then it's in PATH
, so scrcpy
would find it.
from scrcpy.
On my machine (whose PATH contains "~/Android/Sdk/platform-tools") scrcpy
does not work but ADB=$(which adb) scrpy
does. I think this is because exec doesn't do tilde expansion, while which
does.
from scrcpy.
OK, that's weird. On my Debian, I have the reverse behavior:
mkdir z
echo 'echo ok' > z/blabla
chmod +x z/blabla
export PATH="~/z:$PATH"
$ which blabla
$ blabla
ok
from scrcpy.
Yeah - my point is that which
will implicitly do the tilde expansion as expected, but calls to execvp
(like this one in scrcpy) do not.
from scrcpy.
Yeah - my point is that
which
will implicitly do the tilde expansion
Yes, but this surprises me.
as expected
IMO which
should not expand ~
in PATH
(and it does not on my Debian, cf my previous message, since blabla
is not found) for consistency, since exec
does not expand it.
from scrcpy.
Related Issues (20)
- SCRCPY not working after last Android 15 beta update (AP31.240322.023, 15 beta 1.1) HOT 2
- Perfect Pixel (alt+g) not working properly. HOT 3
- ERROR: Could not find any ADB device ERROR: Server connection failed USB debugging enabled HOT 5
- ERROR: Could not find any ADB device ERROR: Server connection failed USB debugging enabled
- The camera cannot be used in IQOO 11S HOT 1
- No audio forwarding on Android 12 HOT 8
- Fail to remotely use scrcpy from MacOS to access the Pixel device connected with Ubuntu host HOT 2
- Enter on Numpad HOT 1
- problème pour contrôler avec la souris HOT 4
- Why tcpip wireless connection gets revoked after a while? HOT 3
- Corrupted screen HOT 1
- Re-setup everytime run 2.3 and 2.4 HOT 3
- Input only via tcpip HOT 2
- Not able use the mouse clicks(left) to navigate through the phone HOT 5
- Requires the ability to pause streaming HOT 4
- Accessing Android work-profile apps HOT 2
- scrcpy killing itself for no reason HOT 3
- Manual installation instructions HOT 5
- OBS unable capture scrcpy audio when --no-video option is used HOT 4
- Question: Why was avcodec and avformat dll file size was big in versions prior to 2.0? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scrcpy.