diff --git a/cmake/Installation.cmake b/cmake/Installation.cmake index eed76c6df..9a9c72d5e 100644 --- a/cmake/Installation.cmake +++ b/cmake/Installation.cmake @@ -32,9 +32,11 @@ if(APPLE) " COMPONENT Runtime ) else() - install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION "bin") - install(FILES "res/qTox.appdata.xml" DESTINATION "share/metainfo") - install(FILES "qtox.desktop" DESTINATION "share/applications") + include( GNUInstallDirs ) + # follow the xdg-desktop specification + install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}") + install(FILES "res/io.github.qtox.qTox.appdata.xml" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/metainfo") + install(FILES "io.github.qtox.qTox.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications") # Install application icons according to the XDG spec set(ICON_SIZES 14 16 22 24 32 36 48 64 72 96 128 192 256 512) diff --git a/qtox.desktop b/io.github.qtox.qTox.desktop similarity index 100% rename from qtox.desktop rename to io.github.qtox.qTox.desktop diff --git a/res/qTox.appdata.xml b/res/io.github.qtox.qTox.appdata.xml similarity index 96% rename from res/qTox.appdata.xml rename to res/io.github.qtox.qTox.appdata.xml index 6a481daf3..84d71c40d 100644 --- a/res/qTox.appdata.xml +++ b/res/io.github.qtox.qTox.appdata.xml @@ -1,7 +1,8 @@ - qtox.desktop + io.github.qtox.qTox + io.github.qtox.qTox.desktop CC-BY-SA-3.0 GPL-3.0 qTox