Skip to content

Commit

Permalink
Add desktop entry file for Linux app launchers
Browse files Browse the repository at this point in the history
Refs <https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html>

PR #3351 <#3351>
Replaces PR #296 <#296>
Fixes #295 <#295>
Fixes #748 <#748>
Fixes #1636 <#1636>

Co-authored-by: Chih-Hsuan Yen <yan12125@gmail.com>
Signed-off-by: Romain Vimont <rom@rom1v.com>
  • Loading branch information
2 people authored and rom1v committed Aug 29, 2022
1 parent aff22a7 commit 4fbaf51
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions 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
7 changes: 7 additions & 0 deletions app/meson.build
Expand Up @@ -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

Expand Down

0 comments on commit 4fbaf51

Please sign in to comment.