zeno/scrcpy

This application provides display and control of Android devices connected on USB (or over TCP/IP). It does not require any root access. It works on GNU/Linux, Windows and MacOS.


This is a companion discussion topic for the original entry at https://copr.fedorainfracloud.org/coprs/zeno/scrcpy/

Hello, when I run scrcpy-console.desktop, it shows me there’s a syntax error.

So I tried to double backslashes, likes:

Exec=/bin/bash --norc --noprofile -i -c "\\$SHELL -i -c scrcpy || read -p \"Press any key to quit...\""

be replaced by

Exec=/bin/bash --norc --noprofile -i -c "\\$SHELL -i -c scrcpy || read -p \\"Press any key to quit...\\""

Then it works correctly.

scrcpy-console.desktop is still not working in the latest version (scrcpy-2.0)
I thinks it’s because of when you insert 2 backslashes in sed expression (when with no sed args), the first backslash will be escaped, so you may should insert 4 backslashes.
Patches are always easier to read, change and manage than sed commands in rpm specfile, so I suggest you to apply patches instead of using sed commands.

ps1. You are missing validate scrcpy-console.desktop.
ps2. I want to create a pull request to the scrcpy.spec but I can’t find a way.

The latest build has the upstream fix applied, and the spec features no more sed patching.

Thanks for notifying me.

Thanks for reply, I tried the upstream fixed scrcpy-console.desktop, but it seems broken to me as well. Since there are too many quotes and backslashes I can’t even figure out where is wrong.
So I create a pull request to suggest a simply one to upstream.

Unfortunately, I cannot test either of them right now, so I am going to wait and see what they end up with in dev and patch accordingly.

Hey zeno, since your last build, my dnf5 update fails with

Transaction failed: Signature verification failed.
PGP check for package "scrcpy-2.4-4.fc40.x86_64" (/var/cache/libdnf5/copr:copr.fedorainfracloud.org:zeno:scrcpy-a46f11a2b939fab1/packages/scrcpy-2.4-4.fc40.x86_64.rpm) from repo "copr:copr.fedorainfracloud.org:zeno:scrcpy" has failed: Problem occurred when opening the package.

Not sure what the issue is, I’ve never seen that with copr repos before (I have several enabled), so no idea if it’s your or Fedora’s fault and who can fix this. Still, I wanted to vent out, sorry and thanks :slight_smile:

Edit: dnf-4’s output is more clear, as usual with dnf5 :wink:

GPG key at https://download.copr.fedorainfracloud.org/results/zeno/scrcpy/pubkey.gpg (0xC9947AB8) is already installed
The GPG keys listed for the "Copr repo for scrcpy owned by zeno" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.. Failing package is: scrcpy-2.4-4.fc40.x86_64
1 Like

Same here. From the full output it seems like the GPG key 28091D1D2A7F7DAFDF6AF72666C47270C9947AB8 (certificate + key) expired.

Full output
Last metadata expiration check: 0:07:42 ago on Fri 28 Jun 2024 09:55:26 AM CEST.
Dependencies resolved.
================================================================================
 Package Arch    Version      Repository                                   Size
================================================================================
Upgrading:
 scrcpy  x86_64  2.4-4.fc40   copr:copr.fedorainfracloud.org:zeno:scrcpy  173 k

Transaction Summary
================================================================================
Upgrade  1 Package

Total size: 173 k
Is this ok [y/N]: Downloading Packages:
[SKIPPED] scrcpy-2.4-4.fc40.x86_64.rpm: Already downloaded                     
error: Verifying a signature using certificate 28091D1D2A7F7DAFDF6AF72666C47270C9947AB8 (zeno_scrcpy (None) <zeno#scrcpy@copr.fedorahosted.org>):
  1. Certificiate 66C47270C9947AB8 invalid: certificate is not alive
      because: The primary key is not live
      because: Expired on 2024-04-22T22:23:32Z
  2. Key 66C47270C9947AB8 invalid: key is not alive
      because: The primary key is not live
      because: Expired on 2024-04-22T22:23:32Z
error: Verifying a signature using certificate 28091D1D2A7F7DAFDF6AF72666C47270C9947AB8 (zeno_scrcpy (None) <zeno#scrcpy@copr.fedorahosted.org>):
  1. Certificiate 66C47270C9947AB8 invalid: certificate is not alive
      because: The primary key is not live
      because: Expired on 2024-04-22T22:23:32Z
  2. Key 66C47270C9947AB8 invalid: key is not alive
      because: The primary key is not live
      because: Expired on 2024-04-22T22:23:32Z
Copr repo for scrcpy owned by zeno              3.6 kB/s | 989  B     00:00    
GPG key at https://download.copr.fedorainfracloud.org/results/zeno/scrcpy/pubkey.gpg (0xC9947AB8) is already installed
The GPG keys listed for the "Copr repo for scrcpy owned by zeno" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.. Failing package is: scrcpy-2.4-4.fc40.x86_64
 GPG Keys are configured as: https://download.copr.fedorainfracloud.org/results/zeno/scrcpy/pubkey.gpg
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED

This may or may not be a general problem, as it occurred with a different copr too: taw/joplin

Please see the Troubleshooting section of the copr Repository.

sudo rpm -e $(rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n" gpg-pubkey | grep zeno | cut -f1)
sudo rpm --import https://download.copr.fedorainfracloud.org/results/zeno/scrcpy/pubkey.gpg

To the best of my knowledge, there is nothing else I can do to resolve this issue on my end. The key needs to be updated on the client side.

1 Like

Thanks!

Hello, I’d like to request that scrcpy be rebuilt for the latest ffmpeg builds.

Thanks for notifying me. The rebuild should be done by now.