mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
cmake: install app icon in XDG hicolor icon theme (#14656)
Install the icon of the application in the hicolor XDG icon theme; this way it can be properly loaded by XDG menus in the currently set XDG icon theme, without looking in the legacy pixmaps location.
This commit is contained in:
@@ -111,7 +111,7 @@ if(NOT APPLE)
|
|||||||
|
|
||||||
install_helper(
|
install_helper(
|
||||||
FILES ${CMAKE_CURRENT_SOURCE_DIR}/nvim.png
|
FILES ${CMAKE_CURRENT_SOURCE_DIR}/nvim.png
|
||||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pixmaps)
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/128x128/apps)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
file(GLOB_RECURSE RUNTIME_PROGRAMS
|
file(GLOB_RECURSE RUNTIME_PROGRAMS
|
||||||
|
@@ -69,7 +69,7 @@ parts:
|
|||||||
# Fix Desktop file
|
# Fix Desktop file
|
||||||
sed -i 's|^Exec=nvim|Exec=/snap/bin/nvim.nvim|' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/nvim.desktop
|
sed -i 's|^Exec=nvim|Exec=/snap/bin/nvim.nvim|' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/nvim.desktop
|
||||||
sed -i 's|^TryExec=nvim|TryExec=/snap/bin/nvim.nvim|' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/nvim.desktop
|
sed -i 's|^TryExec=nvim|TryExec=/snap/bin/nvim.nvim|' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/nvim.desktop
|
||||||
sed -i 's|^Icon=.*|Icon=${SNAP}/usr/share/pixmaps/nvim.png|' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/nvim.desktop
|
sed -i 's|^Icon=.*|Icon=${SNAP}/usr/share/icons/hicolor/128x128/apps/nvim.png|' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/nvim.desktop
|
||||||
build-packages:
|
build-packages:
|
||||||
- ninja-build
|
- ninja-build
|
||||||
- libtool
|
- libtool
|
||||||
|
Reference in New Issue
Block a user