Associate .sv4 and .sv6 savegames with OpenRCT2 on Linux.

This commit is contained in:
Matthias Mailänder 2017-08-12 11:49:09 +02:00 committed by Michael Steenbeek
parent cb2b764f07
commit c86dc803bb
3 changed files with 24 additions and 0 deletions

View File

@ -162,4 +162,6 @@ install(FILES "resources/logo/icon_x128.png" DESTINATION "${CMAKE_INSTALL_DATARO
install(FILES "resources/logo/icon_x256.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/256x256/apps" RENAME "openrct2.png")
install(FILES "resources/logo/icon_flag.svg" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps" RENAME "openrct2.svg")
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-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,12 @@
<?xml version="1.0"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="application/x-openrct2-savegame">
<icon name="openrct2" />
<generic-icon name="applications-games"/>
<comment>OpenRCT2 Savegame</comment>
<glob weight="60" pattern="*.sv6"/>
<glob weight="60" pattern="*.sv4"/>
</mime-type>
</mime-info>

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 %f
Icon=openrct2
Name=OpenRCT2
Terminal=false
NoDisplay=true
MimeType=application/x-openrct2-savegame;