mirror of https://github.com/OpenRCT2/OpenRCT2.git
Associate .sc4 and .sc6 scenarios with OpenRCT2 on Linux.
This commit is contained in:
parent
c86dc803bb
commit
c4abbc1167
|
@ -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")
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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;
|
Loading…
Reference in New Issue