┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorCarl Schwan <[email protected]>2024-01-30 22:26:30 +0100
committerCarl Schwan <[email protected]>2024-02-02 10:26:48 +0000
commit6bd103b322c11a3d5041b4c66abb745b96aaa5ce (patch)
tree5bae9886fa69a7a1556107454d50fc0758912872 /src/CMakeLists.txt
parentc7f5125410751cfb3ad1121449ea5f54a7565b2c (diff)
Fix flatpak
Update with the state of the manifest on github and install icons at the correct location
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 533b5d221..18494fc8d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -464,9 +464,22 @@ if(FLATPAK)
target_compile_definitions(dolphin PRIVATE FLATPAK)
endif()
-# Sets the icon on Windows and OSX
-file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/icons/*system-file-manager.png")
-ecm_add_app_icon(dolphin ICONS ${ICONS_SRCS})
+# Install the icons on macOS and Windows
+ecm_add_app_icon(dolphin
+ ICONS
+ icons/128-apps-org.kde.dolphin.png
+ icons/16-apps-org.kde.dolphin.png
+ icons/22-apps-org.kde.dolphin.png
+ icons/32-apps-org.kde.dolphin.png
+ icons/48-apps-org.kde.dolphin.png
+ icons/64-apps-org.kde.dolphin.png
+ DESTINATION
+ ${KDE_INSTALL_ICONDIR}
+ THEME
+ hicolor
+)
+
+install(FILES icons/org.kde.dolphin.svg DESTINATION ${KDE_INSTALL_ICONDIR}/hicolor/scalable/apps)
target_link_libraries(dolphin
PRIVATE