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;