From 4fbaf51370adc02e77484c1b24cf54db2da369d8 Mon Sep 17 00:00:00 2001 From: Addison Snelling Date: Sun, 14 Oct 2018 03:50:35 -0500 Subject: [PATCH] Add desktop entry file for Linux app launchers Refs PR #3351 Replaces PR #296 Fixes #295 Fixes #748 Fixes #1636 Co-authored-by: Chih-Hsuan Yen Signed-off-by: Romain Vimont --- app/data/scrcpy.desktop | 10 ++++++++++ app/meson.build | 7 +++++++ 2 files changed, 17 insertions(+) create mode 100644 app/data/scrcpy.desktop diff --git a/app/data/scrcpy.desktop b/app/data/scrcpy.desktop new file mode 100644 index 0000000000..5933272d24 --- /dev/null +++ b/app/data/scrcpy.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=scrcpy +GenericName=Android Remote Control +Comment=Display and control your Android device +Exec=scrcpy +Icon=scrcpy +Terminal=false +Type=Application +Categories=Utility;RemoteAccess; +StartupNotify=false diff --git a/app/meson.build b/app/meson.build index e57a842808..0551011ea7 100644 --- a/app/meson.build +++ b/app/meson.build @@ -235,6 +235,13 @@ install_data('data/zsh-completion/_scrcpy', install_data('data/bash-completion/scrcpy', install_dir: join_paths(datadir, 'bash-completion/completions')) +# Desktop entry file for application launchers +if host_machine.system() == 'linux' + # Install a launcher (ex: /usr/local/share/applications/scrcpy.desktop) + install_data('data/scrcpy.desktop', + install_dir: join_paths(datadir, 'applications')) +endif + ### TESTS