Add desktop entry file for Linux app launchers
Refs <https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html> PR #3351 <https://github.com/Genymobile/scrcpy/pull/3351> Replaces PR #296 <https://github.com/Genymobile/scrcpy/pull/296> Fixes #295 <https://github.com/Genymobile/scrcpy/issues/295> Fixes #748 <https://github.com/Genymobile/scrcpy/issues/748> Fixes #1636 <https://github.com/Genymobile/scrcpy/issues/1636> Co-authored-by: Chih-Hsuan Yen <yan12125@gmail.com> Signed-off-by: Romain Vimont <rom@rom1v.com>
This commit is contained in:
committed by
Romain Vimont
parent
c1ec1d1023
commit
51a1762cbd
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user