From d38e40a1f2f0332985215cf412f7f4cf3614ec7f Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 4 Feb 2020 14:57:27 +0100 Subject: [PATCH] Add empty icon to make linuxdeploy happy. --- CMakeLists.txt | 8 +++++++- de.tastytea.mastorss.desktop.in | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e304314..92b3019 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,8 +42,14 @@ if(WITH_DESKTOP) # Needed for AppImage. configure_file("de.tastytea.${PROJECT_NAME}.desktop.in" "${CMAKE_CURRENT_BINARY_DIR}/de.tastytea.${PROJECT_NAME}.desktop" @ONLY) - install(FILES "${CMAKE_CURRENT_BINARY_DIR}/de.tastytea.${PROJECT_NAME}.desktop" + # linuxdeploy insists on an icon. + file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/de.tastytea.${PROJECT_NAME}.svg" "") + + install(FILES + "${CMAKE_CURRENT_BINARY_DIR}/de.tastytea.${PROJECT_NAME}.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications") + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/de.tastytea.${PROJECT_NAME}.svg" + "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps") endif() # include(cmake/packages.cmake) diff --git a/de.tastytea.mastorss.desktop.in b/de.tastytea.mastorss.desktop.in index 0ba7b38..74a5ff7 100644 --- a/de.tastytea.mastorss.desktop.in +++ b/de.tastytea.mastorss.desktop.in @@ -4,6 +4,7 @@ Type=Application Name=@PROJECT_NAME@ NoDisplay=true Comment=@PROJECT_DESCRIPTION@ +Icon=de.tastytea.mastorss Exec=@PROJECT_NAME@ Terminal=true Categories=Network;