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

Create desktop entry file for Linux app launchers #295

Closed
asnelling opened this issue Oct 14, 2018 · 2 comments
Closed

Create desktop entry file for Linux app launchers #295

asnelling opened this issue Oct 14, 2018 · 2 comments

Comments

@asnelling
Copy link
Contributor

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

@MCMic
Copy link

MCMic commented Nov 5, 2018

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)

@Freed-Wu
Copy link

Freed-Wu commented Jun 5, 2022

Is there any progress about desktop entry?

rom1v pushed a commit that referenced this issue Jun 27, 2022
Refs <https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html>

PR #3351 <#3351>
Replaces PR #296 <#296>
Fixes #295 <#295>
Fixes #748 <#748>
Fixes #1636 <#1636>

Co-authored-by: Chih-Hsuan Yen <yan12125@gmail.com>
Signed-off-by: Romain Vimont <rom@rom1v.com>
rom1v pushed a commit that referenced this issue Jun 27, 2022
Refs <https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html>

PR #3351 <#3351>
Replaces PR #296 <#296>
Fixes #295 <#295>
Fixes #748 <#748>
Fixes #1636 <#1636>

Co-authored-by: Chih-Hsuan Yen <yan12125@gmail.com>
Signed-off-by: Romain Vimont <rom@rom1v.com>
rom1v pushed a commit that referenced this issue Aug 29, 2022
Refs <https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html>

PR #3351 <#3351>
Replaces PR #296 <#296>
Fixes #295 <#295>
Fixes #748 <#748>
Fixes #1636 <#1636>

Co-authored-by: Chih-Hsuan Yen <yan12125@gmail.com>
Signed-off-by: Romain Vimont <rom@rom1v.com>
@rom1v rom1v closed this as completed in 51a1762 Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants