From c86dc803bb5a7320d1ef839587cdcab6a632aca9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 12 Aug 2017 11:49:09 +0200 Subject: [PATCH] Associate .sv4 and .sv6 savegames with OpenRCT2 on Linux. --- CMakeLists.txt | 2 ++ distribution/linux/openrct2-mimeinfo.xml | 12 ++++++++++++ distribution/linux/openrct2-savegame.desktop | 10 ++++++++++ 3 files changed, 24 insertions(+) create mode 100644 distribution/linux/openrct2-mimeinfo.xml create mode 100644 distribution/linux/openrct2-savegame.desktop diff --git a/CMakeLists.txt b/CMakeLists.txt index 2469a359f7..e73b17c579 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") diff --git a/distribution/linux/openrct2-mimeinfo.xml b/distribution/linux/openrct2-mimeinfo.xml new file mode 100644 index 0000000000..0b877fc312 --- /dev/null +++ b/distribution/linux/openrct2-mimeinfo.xml @@ -0,0 +1,12 @@ + + + + + + + OpenRCT2 Savegame + + + + + diff --git a/distribution/linux/openrct2-savegame.desktop b/distribution/linux/openrct2-savegame.desktop new file mode 100644 index 0000000000..72e863c580 --- /dev/null +++ b/distribution/linux/openrct2-savegame.desktop @@ -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;