The base
.desktop
for Lapce file can be found here
For logos to work, download either the light app logo
or the dark app logo
and save it in the icons
directory inside one of the directories contained in the $XDG_DATA_DIRS
environment variable.
For example, /usr/local/share/
is part of $XDG_DATA_DIRS
on my machine, so
I saved the light version of the logo as /usr/local/share/icons/lapce_icon_light.svg
.
Important
If you don't save the icon as lapce_icon_light.svg
, you need to change the file names
in both Icon=
entries below.
# ~/.local/share/applications/Lapce.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Lapce
Comment=Lightning-fast and powerful code editor written in Rust
Categories=Development;IDE;
GenericName=Code Editor
StartupWMClass=lapce
Icon=lapce_icon_light.svg
Exec=lapce %F
Terminal=false
MimeType=text/plain;inode/directory;
Actions=new-window;
[Desktop Action new-window]
Name=New Window
Exec=lapce --new %F
Icon=lapce_icon_light.svg