Desktop entry file for Linux app launchers Genymobile/scrcpy#295

See: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
This commit is contained in:
Addison Snelling 2018-10-14 03:50:35 -05:00
parent b882322f73
commit 7ed5dd3503
2 changed files with 16 additions and 0 deletions

View file

@ -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

10
app/scrcpy.desktop Normal file
View file

@ -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