Fix install of desktop file in flatpak

pull/1054/head
Nicolas Werner 3 years ago
parent ffb8dfc034
commit 98d06f8dd5
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 3
      CMakeLists.txt
  2. 6
      resources/nheko.desktop.in

@ -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")

@ -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
Loading…
Cancel
Save