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 <[email protected]>
Signed-off-by: Romain Vimont <[email protected]>
  • 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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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.