Right path for flatpak

This commit is contained in:
2022-04-18 15:52:29 +02:00
parent 027a38cb42
commit f68a9c4d7c
+7 -2
View File
@@ -70,7 +70,12 @@ if(UNIX)
if(XDG-DESKTOP-MENU_EXECUTABLE) if(XDG-DESKTOP-MENU_EXECUTABLE)
install(SCRIPT install.cmake) install(SCRIPT install.cmake)
else() else()
install(FILES org.nou.tenmon.desktop DESTINATION "$ENV{FLATPAK_DEST}/usr/share/applications") if(DEFINED ENV{FLATPAK_DEST})
install(FILES org.nou.tenmon.png DESTINATION "$ENV{FLATPAK_DEST}/usr/share/icons/hicolor/32x32/apps") install(FILES org.nou.tenmon.desktop DESTINATION "$ENV{FLATPAK_DEST}/share/applications")
install(FILES org.nou.tenmon.png DESTINATION "$ENV{FLATPAK_DEST}/share/icons/hicolor/32x32/apps")
else()
install(FILES org.nou.tenmon.desktop DESTINATION "/usr/share/applications")
install(FILES org.nou.tenmon.png DESTINATION "/usr/share/icons/hicolor/32x32/apps")
endif()
endif() endif()
endif(UNIX) endif(UNIX)