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