From 7ed5dd35034cd34049788eb05b2522728a7788f9 Mon Sep 17 00:00:00 2001 From: Addison Snelling Date: Sun, 14 Oct 2018 03:50:35 -0500 Subject: [PATCH] Desktop entry file for Linux app launchers Genymobile/scrcpy#295 See: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html --- app/meson.build | 6 ++++++ app/scrcpy.desktop | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 app/scrcpy.desktop diff --git a/app/meson.build b/app/meson.build index 3e309cdfb2..41df59e549 100644 --- a/app/meson.build +++ b/app/meson.build @@ -143,6 +143,12 @@ endif executable('scrcpy', src, dependencies: dependencies, include_directories: src_dir, install: true, c_args: c_args, link_args: link_args) +# Desktop entry file for application launchers +if host_machine.system() == 'linux' + # -> /usr/share/applications/scrcpy.desktop + install_data('scrcpy.desktop', install_dir : join_paths(get_option('datadir'), 'applications')) +endif + ### TESTS diff --git a/app/scrcpy.desktop b/app/scrcpy.desktop new file mode 100644 index 0000000000..19ff3c474c --- /dev/null +++ b/app/scrcpy.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=scrcpy +GenericName=Android Remote Control +Comment=Display and control your Android device +Exec=scrcpy +Icon=gparted +Terminal=false +Type=Application +Categories=Utility;RemoteAccess; +StartupNotify=false