diff options
author | saturneric <[email protected]> | 2025-05-01 10:11:56 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-05-01 10:11:56 +0000 |
commit | 80029d732ef12c89d4b86d21b54415425d87d1a2 (patch) | |
tree | 9e337fe86e751b85b277bb51034f6240400f55c2 /src | |
parent | feat: ad cmake option GPGFRONTEND_CHECK_RELEASE_COMMIT_HASH (diff) | |
download | GpgFrontend-80029d732ef12c89d4b86d21b54415425d87d1a2.tar.gz GpgFrontend-80029d732ef12c89d4b86d21b54415425d87d1a2.zip |
fix: icon on linux platfrom
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 6 | ||||
-rw-r--r-- | src/ui/GpgFrontendApplication.cpp | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ee4fbf17..4d3e89ee 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -426,17 +426,17 @@ install(TARGETS ${APP_NAME} ${GPGFRONTEND_INSTALL_LIBRARIES} # Install resources and translation # install(FILES ${CMAKE_SOURCE_DIR}/TRANSLATORS - DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${CPACK_PACKAGE_NAME}) + DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${APP_NAME_LOWER}) # # License and documentation # install(FILES "${CMAKE_SOURCE_DIR}/COPYING" - DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/licenses/${CPACK_PACKAGE_NAME}" + DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/licenses/${APP_NAME_LOWER}" COMPONENT runtime) install(FILES "${CMAKE_SOURCE_DIR}/README.md" - DESTINATION "${CMAKE_INSTALL_DOCDIR}/${CPACK_PACKAGE_NAME}" + DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/doc/${APP_NAME_LOWER}" COMPONENT runtime) # diff --git a/src/ui/GpgFrontendApplication.cpp b/src/ui/GpgFrontendApplication.cpp index eed6a054..9cf93a9d 100644 --- a/src/ui/GpgFrontendApplication.cpp +++ b/src/ui/GpgFrontendApplication.cpp @@ -36,8 +36,9 @@ GpgFrontendApplication::GpgFrontendApplication(int &argc, char *argv[]) : QApplication(argc, argv) { #if !(defined(__APPLE__) && defined(__MACH__)) // Try system theme icon first, fall back to resource - QIcon appIcon = QIcon::fromTheme("gpgfrontend", QIcon(":/icons/gpgfrontend.png")); - GpgFrontend::UI::GpgFrontendApplication::setWindowIcon(appIcon); + QIcon app_icon = QIcon::fromTheme("com.bktus.gpgfrontend", + QIcon(":/icons/gpgfrontend.png")); + GpgFrontend::UI::GpgFrontendApplication::setWindowIcon(app_icon); #endif QString application_display_name = GetProjectName(); |