diff options
-rw-r--r-- | resource/appstream/com.bktus.gpgfrontend.desktop | 3 | ||||
-rw-r--r-- | src/CMakeLists.txt | 6 | ||||
-rw-r--r-- | src/ui/GpgFrontendApplication.cpp | 5 |
3 files changed, 8 insertions, 6 deletions
diff --git a/resource/appstream/com.bktus.gpgfrontend.desktop b/resource/appstream/com.bktus.gpgfrontend.desktop index c74c2af1..c61734b1 100644 --- a/resource/appstream/com.bktus.gpgfrontend.desktop +++ b/resource/appstream/com.bktus.gpgfrontend.desktop @@ -5,4 +5,5 @@ Exec=gpgfrontend Icon=com.bktus.gpgfrontend Comment=Encrypt and sign data Terminal=false -Categories=Utility;
\ No newline at end of file +Categories=Utility; +StartupWMClass=GpgFrontend
\ No newline at end of file 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(); |