Fix install of desktop file in flatpak

This commit is contained in:
Nicolas Werner 2022-04-19 02:58:59 +02:00
parent ffb8dfc034
commit 98d06f8dd5
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
2 changed files with 5 additions and 4 deletions

View file

@ -747,9 +747,10 @@ if(UNIX AND NOT APPLE)
install (FILES "resources/nheko-256.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/256x256/apps" RENAME "${APPID}.png")
install (FILES "resources/nheko-512.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/512x512/apps" RENAME "${APPID}.png")
install (FILES "resources/nheko.svg" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps" RENAME "${APPID}.svg")
install (FILES "resources/nheko.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications" RENAME "${APPID}.desktop")
install (FILES "resources/_nheko" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/zsh/site-functions")
configure_file("resources/nheko.desktop.in" "resources/nheko.desktop" @ONLY)
install (FILES "resources/nheko.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications" RENAME "${APPID}.desktop")
configure_file("resources/nheko.appdata.xml.in" "resources/nheko.appdata.xml" @ONLY)
install (FILES "resources/nheko.appdata.xml" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/metainfo" RENAME "${APPID}.appdata.xml")

View file

@ -2,11 +2,11 @@
Name=nheko
Version=1.0
Comment=Desktop client for Matrix
Exec=nheko %u
Icon=nheko
Exec=@APPID@ %u
Icon=@APPID@
Type=Application
Categories=Network;InstantMessaging;Qt;
StartupWMClass=nheko
StartupWMClass=@APPID@
Terminal=false
MimeType=x-scheme-handler/matrix;
X-GNOME-UsesNotifications=true