From 9ea2169669986751d8e09ac52d0a79ab98c2a7fa Mon Sep 17 00:00:00 2001 From: "Matthew J. Milner" Date: Thu, 31 Oct 2024 14:29:45 +0100 Subject: [PATCH] Use dbus/XDG/flatpak/etc. convention for icon naming too (on unix) Signed-off-by: Matthew J. Milner --- avogadro/CMakeLists.txt | 2 +- avogadro/icons/org.openchemistry.Avogadro2.desktop | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/avogadro/CMakeLists.txt b/avogadro/CMakeLists.txt index 643bfba2..59a1a88e 100644 --- a/avogadro/CMakeLists.txt +++ b/avogadro/CMakeLists.txt @@ -176,7 +176,7 @@ elseif(UNIX) install(FILES "icons/org.openchemistry.Avogadro2.desktop" DESTINATION "${INSTALL_XDG_APPS_DIR}") install(FILES "icons/org.openchemistry.Avogadro2.metainfo.xml" DESTINATION "${CMAKE_INSTALL_PREFIX}/share/metainfo") install(FILES "icons/avogadro.png" DESTINATION "${INSTALL_XDG_ICON_DIR}" - RENAME "avogadro2.png") + RENAME "org.openchemistry.Avogadro2.png") elseif(WIN32) list(APPEND avogadro_srcs icons/avogadro.rc) endif() diff --git a/avogadro/icons/org.openchemistry.Avogadro2.desktop b/avogadro/icons/org.openchemistry.Avogadro2.desktop index 33a46df9..b1e37d95 100644 --- a/avogadro/icons/org.openchemistry.Avogadro2.desktop +++ b/avogadro/icons/org.openchemistry.Avogadro2.desktop @@ -1,10 +1,10 @@ [Desktop Entry] Version=1.0 -Name=Avogadro2 +Name=Avogadro Comment=Advanced molecular editor Comment[hu]=Fejlett molekuláris szerkesztő Exec=avogadro2 %f -Icon=avogadro2 +Icon=org.openchemistry.Avogadro2 Terminal=false Type=Application Categories=Qt;Science;Chemistry;Physics;Education;