Skip to content

Commit

Permalink
Follow freedesktop spec for .desktop file
Browse files Browse the repository at this point in the history
  • Loading branch information
stefonarch committed Jul 15, 2023
1 parent c17ff59 commit 95be205
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ qt5_translation_loader(SCREENGRAB_QM_LOADER
${PROJECT_NAME}
)

# Follow freedesktop specifications
set(ORIGINAL_FILENAME "${SCREENGRAB_DESKTOP_FILES}")
set(NEW_FILENAME "org.lxqt_project.ScreenGrab.desktop")

# generating executable
add_executable(screengrab
${SCREENGRAB_SRC}
Expand Down Expand Up @@ -216,9 +220,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 ${NEW_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
)
File renamed without changes.

0 comments on commit 95be205

Please sign in to comment.