Skip to content

Instantly share code, notes, and snippets.

@thass0
Created December 31, 2023 11:44
Show Gist options
  • Save thass0/752d713995bef4365f780f85ef6aeb30 to your computer and use it in GitHub Desktop.
Save thass0/752d713995bef4365f780f85ef6aeb30 to your computer and use it in GitHub Desktop.
Logo configuration for the .desktop file of the Lapce editor (lapce.dev)

Lapce.desktop

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment