From c1b786dc05c1eaac9c7c603f343b3191c548b2c1 Mon Sep 17 00:00:00 2001 From: Thomas Karl Pietrowski Date: Tue, 6 Apr 2021 21:43:07 +0200 Subject: [PATCH] CMake: Installing 128x128 png to the right place and rename it According to Freedesktop spec the icon should be placed in the fallback theme and use the id of the application. Signed-off-by: Thomas Karl Pietrowski --- CMakeLists.txt | 4 +++- deploy/org.mavlink.qgroundcontrol.desktop | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2e5d077..2cfebd2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -203,7 +203,9 @@ install( ) install( FILES ${CMAKE_SOURCE_DIR}/resources/icons/qgroundcontrol.png - DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/ + DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/128x128/apps/ + RENAME org.mavlink.qgroundcontrol.png +) ) if(BUILD_TESTING) diff --git a/deploy/org.mavlink.qgroundcontrol.desktop b/deploy/org.mavlink.qgroundcontrol.desktop index 65c8c9b..33fe49d 100644 --- a/deploy/org.mavlink.qgroundcontrol.desktop +++ b/deploy/org.mavlink.qgroundcontrol.desktop @@ -3,7 +3,7 @@ Type=Application Name=QGroundControl GenericName=Ground Control Station Comment=UAS ground control station -Icon=qgroundcontrol +Icon=org.mavlink.qgroundcontrol Exec=QGroundControl Terminal=false Categories=Utility;