Register
c[ode]clap»Forums»Add a .desktop file and icon for Linux?
Ryan McQuen
7 posts
Add a .desktop file and icon for Linux?
1 week, 2 days ago Edited by Ryan McQuen on Sept. 16, 2020, 10:19 p.m.
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.