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 e01601d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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
)
File renamed without changes.

0 comments on commit e01601d

Please sign in to comment.