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:
committed by
Michael Steenbeek
parent
55aea7188b
commit
27e3703fec
@@ -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")
|
||||
|
||||
10
distribution/linux/openrct2-uri.desktop
Normal file
10
distribution/linux/openrct2-uri.desktop
Normal 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
|
||||
Reference in New Issue
Block a user