From d8d2ae8a31d0cc163722f62e6cc049e17d77d21c Mon Sep 17 00:00:00 2001 From: "K. Isom" Date: Thu, 17 Sep 2026 06:00:12 -0700 Subject: [PATCH] Install Linux desktop entry and icons for kge --- CMakeLists.txt | 19 +++++++++++++++++++ kge.desktop | 14 ++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 kge.desktop diff --git a/CMakeLists.txt b/CMakeLists.txt index c1c6131..1b78427 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -509,6 +509,25 @@ if (BUILD_GUI) # Install kge man page only when GUI is built install(FILES docs/kge.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) install(FILES kge.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons) + if (UNIX AND NOT APPLE) + install(FILES kge.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications) + install(FILES kge.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pixmaps) + install(FILES kge.iconset/icon_16x16.png + DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/16x16/apps + RENAME kge.png) + install(FILES kge.iconset/icon_32x32.png + DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/32x32/apps + RENAME kge.png) + install(FILES kge.iconset/icon_128x128.png + DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/128x128/apps + RENAME kge.png) + install(FILES kge.iconset/icon_256x256.png + DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/256x256/apps + RENAME kge.png) + install(FILES kge.iconset/icon_512x512.png + DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/512x512/apps + RENAME kge.png) + endif () # Optional post-build bundle fixup (can also be run from scripts). # This provides a CMake target to run BundleUtilities' fixup_bundle on the diff --git a/kge.desktop b/kge.desktop new file mode 100644 index 0000000..3f52206 --- /dev/null +++ b/kge.desktop @@ -0,0 +1,14 @@ +[Desktop Entry] +Type=Application +Name=kge +GenericName=Text Editor +Comment=kyle's graphical text editor +Exec=/usr/local/bin/kge %F +TryExec=/usr/local/bin/kge +Icon=kge +Terminal=false +StartupNotify=true +StartupWMClass=kge +Categories=Utility;TextEditor; +MimeType=text/plain;text/x-c;text/x-c++;text/x-python;text/x-go;text/x-rust;application/json;text/markdown;text/x-shellscript; +Keywords=text;editor;code;