Add a .desktop file and icon for Linux?

It's nice having a pre-made .desktop file so that you can easily copy that to ~/.local/share/applications/ and an icon to copy to ~/.local/share/icons/, I've done this manually, and it allows me to pin and launch codeclap easily in KDE.



Here are the contents of codeclap.desktop:

1
2
3
4
5
6
7
8
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=codeclap
Exec=$HOME/bin/codeclap/codeclap
Icon=codeclap.png
Type=Application
Categories=Development;
Terminal=false


And here's the icon I used:



It'd be nice if this shipped with the codeclap archive (you could even write a script to 'install' it). But just having it there would save some time.

Edited by Ryan McQuen on