From e01601ddc969663df7dc15f6fcc4d1002ae71337 Mon Sep 17 00:00:00 2001 From: stefonarch Date: Sat, 15 Jul 2023 17:50:50 +0200 Subject: [PATCH 1/2] Follow freedesktop spec for .desktop file --- CMakeLists.txt | 7 +++++-- ...etainfo.xml => org.lxqt_project.ScreenGrab.metainfo.xml | 0 2 files changed, 5 insertions(+), 2 deletions(-) rename screengrab.metainfo.xml => org.lxqt_project.ScreenGrab.metainfo.xml (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1aae1bb..616f19a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -168,6 +168,9 @@ qt5_translation_loader(SCREENGRAB_QM_LOADER ${PROJECT_NAME} ) +# Follow freedesktop specifications +set(DNS_DESKTOP_FILENAME "org.lxqt_project.ScreenGrab.desktop") + # generating executable add_executable(screengrab ${SCREENGRAB_SRC} @@ -216,9 +219,9 @@ install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/docs/html" DESTINATION "${CMAKE_I # install config files install(FILES ${SCREENGRAB_CONFIG_FILES} DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}) # install desktop files -install(FILES ${SCREENGRAB_DESKTOP_FILES} DESTINATION ${CMAKE_INSTALL_DATADIR}/applications) +install(FILES ${SCREENGRAB_DESKTOP_FILES} DESTINATION ${CMAKE_INSTALL_DATADIR}/applications RENAME ${DNS_DESKTOP_FILENAME}) # install pixmap install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/img/screengrab.svg" DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps") -install(FILES screengrab.metainfo.xml +install(FILES org.lxqt_project.ScreenGrab.metainfo.xml DESTINATION ${CMAKE_INSTALL_DATADIR}/metainfo ) diff --git a/screengrab.metainfo.xml b/org.lxqt_project.ScreenGrab.metainfo.xml similarity index 100% rename from screengrab.metainfo.xml rename to org.lxqt_project.ScreenGrab.metainfo.xml From ff89e784082b93ea4858b7ddadcd64547ae9fafc Mon Sep 17 00:00:00 2001 From: stefonarch Date: Sun, 16 Jul 2023 19:41:21 +0200 Subject: [PATCH 2/2] Updated metainfo.xml --- org.lxqt_project.ScreenGrab.metainfo.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.lxqt_project.ScreenGrab.metainfo.xml b/org.lxqt_project.ScreenGrab.metainfo.xml index 711877c..cc44985 100644 --- a/org.lxqt_project.ScreenGrab.metainfo.xml +++ b/org.lxqt_project.ScreenGrab.metainfo.xml @@ -26,7 +26,7 @@ - screengrab.desktop + org.lxqt_project.ScreenGrab.desktop https://github.com/lxqt/screengrab/raw/master/screengrab.png