Skip to content

Create desktop entry file for Linux app launchers #295

Closed

Description

@asnelling

It'd be cool to launch scrcpy from a desktop environment's application menu. All that's needed is a scrcpy.desktop file that installs to /usr/share/applications.

See XDG Desktop Entry Specification

Activity

  1. MCMic commented on Nov 5, 2018

    @MCMic

    Even better for KDE users would be a Device action: https://techbase.kde.org/Development/Tutorials/Solid/Device_Actions

    Sadly this seems compromised as phones are not directly recognized as such:

    $ solid-hardware details '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb1/1-4'
    udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb1/1-4'
      parent = '/org/kde/solid/udev'  (string)
      vendor = 'SAMSUNG'  (string)
      product = 'SAMSUNG_Android'  (string)
      description = 'SAMSUNG_Android'  (string)
      Block.major = 189  (0xbd)  (int)
      Block.minor = 13  (0xd)  (int)
      Block.device = '/dev/bus/usb/001/014'  (string)
      Camera.supportedProtocols = {'ptp'}  (string list)
      Camera.supportedDrivers = {'gphoto'}  (string list)
      PortableMediaPlayer.supportedProtocols = {'mtp'}  (string list)
      PortableMediaPlayer.supportedDrivers = {'usb'}  (string list)
    

    Tinkering with systemd and udev I managed to start scrcpy when my phone is plugged in but it’s not as practical and sometimes fails (because scrcpy runs before adb link is ready I think)

  2. Freed-Wu commented on Jun 5, 2022

    @Freed-Wu

    Is there any progress about desktop entry?

  3. added 2 commits that reference this issue on Jun 27, 2022
    08d5a27
    4c6ac64
  4. added a commit that references this issue on Aug 29, 2022
    4fbaf51
  5. added a commit that references this issue on Sep 9, 2022
    51a1762
  6. added a commit that references this issue on Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions