Associate .sc4 and .sc6 scenarios with OpenRCT2 on Linux.

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

View File

@ -163,5 +163,6 @@ install(FILES "resources/logo/icon_x256.png" DESTINATION "${CMAKE_INSTALL_DATARO
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-scenario.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

@ -9,4 +9,12 @@
<glob weight="60" pattern="*.sv4"/>
</mime-type>
<mime-type type="application/x-openrct2-scenario">
<icon name="openrct2" />
<generic-icon name="applications-games"/>
<comment>OpenRCT2 Scenario</comment>
<glob weight="60" pattern="*.sc6"/>
<glob weight="60" pattern="*.sc4"/>
</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-scenario;