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