1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Add openrct2 URI handling to Linux

This commit is contained in:
Philip Goto
2017-11-06 22:35:08 +01:00
committed by Michael Steenbeek
parent 55aea7188b
commit 27e3703fec
2 changed files with 11 additions and 0 deletions

View File

@@ -169,5 +169,6 @@ install(FILES "resources/logo/icon_flag.svg" DESTINATION "${CMAKE_INSTALL_DATARO
install(FILES "distribution/linux/openrct2.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications")
install(FILES "distribution/linux/openrct2-savegame.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications")
install(FILES "distribution/linux/openrct2-scenario.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications")
install(FILES "distribution/linux/openrct2-uri.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications")
install(FILES "distribution/linux/openrct2-mimeinfo.xml" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/mime/packages/" RENAME "openrct2.xml")
install(DIRECTORY "distribution/man/" DESTINATION "${CMAKE_INSTALL_MANDIR}/man6" FILES_MATCHING PATTERN "*.6")

View File

@@ -0,0 +1,10 @@
# http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.0.html
[Desktop Entry]
Type=Application
Version=1.0
Exec=openrct2 handle-uri %u
Icon=openrct2
Name=OpenRCT2
Terminal=false
NoDisplay=true
MimeType=x-scheme-handler/openrct2