1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 23:07:59 +00:00

Rename .desktop and appdata files to match executable name. Fixes #6625.

This commit is contained in:
Eugene Shalygin 2017-04-12 17:15:27 +02:00
parent 07af8c9648
commit ecd67b9d75
4 changed files with 17 additions and 15 deletions

View File

@ -20,18 +20,20 @@ install(FILES ${MAN_FILES}
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1
COMPONENT doc) COMPONENT doc)
install(DIRECTORY menuicons/ if (GUI)
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor install(DIRECTORY menuicons/
FILES_MATCHING PATTERN "*.png") DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor
FILES_MATCHING PATTERN "*.png")
install(FILES ${qBittorrent_SOURCE_DIR}/src/icons/qbittorrent.png install(FILES ${qBittorrent_SOURCE_DIR}/src/icons/qbittorrent.png
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pixmaps/ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pixmaps/
COMPONENT data) COMPONENT data)
install(FILES ${qBittorrent_SOURCE_DIR}/src/icons/qBittorrent.desktop install(FILES ${qBittorrent_SOURCE_DIR}/src/icons/qbittorrent.desktop
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/
COMPONENT data) COMPONENT data)
install(FILES qBittorrent.appdata.xml install(FILES qbittorrent.appdata.xml
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/appdata/ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/appdata/
COMPONENT data) COMPONENT data)
endif()

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 sledgehammer999 <sledgehammer999@qbittorrent.org> --> <!-- Copyright 2014 sledgehammer999 <sledgehammer999@qbittorrent.org> -->
<component type="desktop"> <component type="desktop">
<id>qBittorrent.desktop</id> <id>qbittorrent.desktop</id>
<metadata_license>CC0-1.0</metadata_license> <metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0 and OpenSSL</project_license> <project_license>GPL-2.0 and OpenSSL</project_license>
<name>qBittorrent</name> <name>qBittorrent</name>

View File

@ -39,11 +39,11 @@ nogui:systemd {
# Menu Icon # Menu Icon
!nogui { !nogui {
menuicon.files = icons/qBittorrent.desktop menuicon.files = icons/qbittorrent.desktop
menuicon.path = $$DATADIR/applications/ menuicon.path = $$DATADIR/applications/
INSTALLS += menuicon INSTALLS += menuicon
appdata.files = $$DIST_PATH/qBittorrent.appdata.xml appdata.files = $$DIST_PATH/qbittorrent.appdata.xml
appdata.path = $$DATADIR/appdata/ appdata.path = $$DATADIR/appdata/
INSTALLS += appdata INSTALLS += appdata