From 168695bd15ffcf6773b1091d3e8cd308c08b6a92 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sat, 5 Jan 2019 10:01:32 +0800 Subject: [PATCH] Use reverse DNS convention for metadata files naming Also update appdata install path. Closes #10111. --- .tx/config | 2 +- dist/unix/CMakeLists.txt | 6 +++--- ....appdata.xml => org.qbittorrent.qBittorrent.appdata.xml} | 0 ...ttorrent.desktop => org.qbittorrent.qBittorrent.desktop} | 0 unixconf.pri | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) rename dist/unix/{qbittorrent.appdata.xml => org.qbittorrent.qBittorrent.appdata.xml} (100%) rename dist/unix/{qbittorrent.desktop => org.qbittorrent.qBittorrent.desktop} (100%) diff --git a/.tx/config b/.tx/config index 14d71d5e9..2b8d3296e 100644 --- a/.tx/config +++ b/.tx/config @@ -11,7 +11,7 @@ minimum_perc = 23 mode = developer [qbittorrent.qbittorrentdesktop_master] -source_file = dist/unix/qbittorrent.desktop +source_file = dist/unix/org.qbittorrent.qBittorrent.desktop source_lang = en type = DESKTOP minimum_perc = 23 diff --git a/dist/unix/CMakeLists.txt b/dist/unix/CMakeLists.txt index edf0d9216..26b4bea7d 100644 --- a/dist/unix/CMakeLists.txt +++ b/dist/unix/CMakeLists.txt @@ -31,12 +31,12 @@ if (Qt5Widgets_FOUND) DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor FILES_MATCHING PATTERN "*.png") - install(FILES qbittorrent.desktop + install(FILES org.qbittorrent.qBittorrent.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/ COMPONENT data) - install(FILES qbittorrent.appdata.xml - DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/appdata/ + install(FILES org.qbittorrent.qBittorrent.appdata.xml + DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo/ COMPONENT data) install(FILES diff --git a/dist/unix/qbittorrent.appdata.xml b/dist/unix/org.qbittorrent.qBittorrent.appdata.xml similarity index 100% rename from dist/unix/qbittorrent.appdata.xml rename to dist/unix/org.qbittorrent.qBittorrent.appdata.xml diff --git a/dist/unix/qbittorrent.desktop b/dist/unix/org.qbittorrent.qBittorrent.desktop similarity index 100% rename from dist/unix/qbittorrent.desktop rename to dist/unix/org.qbittorrent.qBittorrent.desktop diff --git a/unixconf.pri b/unixconf.pri index 89d5d1426..fa059c0df 100644 --- a/unixconf.pri +++ b/unixconf.pri @@ -35,12 +35,12 @@ nogui:systemd { # Menu Icon !nogui { - menuicon.files = $$DIST_PATH/qbittorrent.desktop + menuicon.files = $$DIST_PATH/org.qbittorrent.qBittorrent.desktop menuicon.path = $$DATADIR/applications/ INSTALLS += menuicon - appdata.files = $$DIST_PATH/qbittorrent.appdata.xml - appdata.path = $$DATADIR/appdata/ + appdata.files = $$DIST_PATH/org.qbittorrent.qBittorrent.appdata.xml + appdata.path = $$DATADIR/metainfo/ INSTALLS += appdata # Apps icons