-
-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Update desktop entry file exec keys #3822
Conversation
Thank you for your PR.
It's surprising, since the Exec line contains
The message By replacing Maybe we should use
OK
OK
I think they are necessary if the value of |
This reverts commit 5482c8e.
As an alternative to these shell script hacks, I could add an option |
I revert this commit and create a new one which I doubled backslashes in it and they works for me. |
This sounds nice, too many backslashes and quotes are complexed the exec key command. But seems like we still need quotes and backslashes around |
it warns:
It seems equal to when I run |
That's interesting, I can not reproduce that setting my login shell to fish or dash, both gtk-launch (that uses the system .desktop file) or "gio launch" (which you can provide a desktop file to) work fine. Also, +1 on dropping -i from main desktop file, good point |
You are right, |
Without To understand what happens, changed the command to: Exec=/bin/sh -c "\"\\$SHELL\" -c 'scrcpy |& tee /tmp/log'" $ cat /tmp/log
exec: No such file or directory
ERROR: Failed to execute: [adb], [start-server]
ERROR: Could not execute "adb start-server"
ERROR: Could not start adb daemon
ERROR: Server connection failed
scrcpy 2.0 <https://github.com/Genymobile/scrcpy> So it probably does not read by |
That's not very good, since scrcpy could fail parsing command line arguments, so before it knows that the flag requesting to pause has been passed. 😕 |
What is the result of: echo $SHELL ? |
tested, doesn't work on gtk-launch |
Both directly run this command on terminal or run a desktop file which |
I think #3822 (comment) is right, my problem is from KDE desktop entry parser behavieres difference to other desktop environments. |
So, any changes can't be apply, and I should figure out why KDE behavieres difference to others. |
It remains the change to replace the "any key" by "Enter" 😉 |
yeah, I noticed user cannot actually press any key to quit in |
Add an option to make scrcpy pause on exit. Three behaviors are possible: - always pause on exit: --pause-on-exit --pause-on-exit=true - never pause on exit: (no option) --pause-on-exit=false - pause when scrcpy returns with an error (a non-zero exit code): --pause-on-exit=if-error This is useful to prevent the terminal window from automatically closing, so that error messages can be read. Refs #3817 <#3817> Refs #3822 <#3822> PR #4130 <#4130>
Add an option to make scrcpy pause on exit. Three behaviors are possible: - always pause on exit: --pause-on-exit --pause-on-exit=true - never pause on exit: (no option) --pause-on-exit=false - pause when scrcpy returns with an error (a non-zero exit code): --pause-on-exit=if-error This is useful to prevent the terminal window from automatically closing, so that error messages can be read. Refs #3817 <#3817> Refs #3822 <#3822> PR #4130 <#4130>
Hello,
I tried to download scrcpy-console.desktop from dev branch and running it, but it seems broken to me. When I run it, it warns "Can't find
/usr/bin/bash -i
".So I suggest this update. This update has 2 behavier changes:
As a user I think these are fine. At least the
Exec
keys in desktop entry files are going to have less backslashes. And they are working fine both on my localbash
andfish
login shell environments. And they passed desktop entry validation.I removed the quotes (and the backslahes they need) around
$SHELL
, I guess the quotes are unnecessary?I also removed
-i
option inscrcpy.desktop
, because we obviously don't need any interactive shell session inscrcpy.desktop
.