Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follow freedesktop spec for .desktop and appstream files #344

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
)
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</ul>
</description>

<launchable type="desktop-id">screengrab.desktop</launchable>
<launchable type="desktop-id">org.lxqt_project.ScreenGrab.desktop</launchable>
<screenshots>
<screenshot type="default">
<image>https://github.com/lxqt/screengrab/raw/master/screengrab.png</image>
Expand Down