From deac2abc0f5f164866245377210a9d9edb4d151b Mon Sep 17 00:00:00 2001
From: Bret Curtis
Date: Fri, 27 Mar 2020 08:12:06 +0100
Subject: [PATCH] add launchable type; rename files to be conform to
freedesktop.org and debian standards
---
CMakeLists.txt | 12 ++++++------
files/openmw.appdata.xml | 5 +++--
files/{openmw-cs.desktop => org.openmw.cs.desktop} | 0
.../{openmw.desktop => org.openmw.launcher.desktop} | 0
4 files changed, 9 insertions(+), 8 deletions(-)
rename files/{openmw-cs.desktop => org.openmw.cs.desktop} (100%)
rename files/{openmw.desktop => org.openmw.launcher.desktop} (100%)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 58376a7ce..af3d9d1ba 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -401,12 +401,12 @@ configure_resource_file(${OpenMW_SOURCE_DIR}/files/gamecontrollerdb_205.txt
"${OpenMW_BINARY_DIR}" "gamecontrollerdb_205.txt")
if (NOT WIN32 AND NOT APPLE)
- configure_file(${OpenMW_SOURCE_DIR}/files/openmw.desktop
- "${OpenMW_BINARY_DIR}/openmw.desktop")
+ configure_file(${OpenMW_SOURCE_DIR}/files/org.openmw.launcher.desktop
+ "${OpenMW_BINARY_DIR}/org.openmw.launcher.desktop")
configure_file(${OpenMW_SOURCE_DIR}/files/openmw.appdata.xml
"${OpenMW_BINARY_DIR}/openmw.appdata.xml")
- configure_file(${OpenMW_SOURCE_DIR}/files/openmw-cs.desktop
- "${OpenMW_BINARY_DIR}/openmw-cs.desktop")
+ configure_file(${OpenMW_SOURCE_DIR}/files/org.openmw.cs.desktop
+ "${OpenMW_BINARY_DIR}/org.openmw.cs.desktop")
endif()
# CXX Compiler settings
@@ -480,11 +480,11 @@ IF(NOT WIN32 AND NOT APPLE)
INSTALL(FILES "files/mygui/DejaVu Font License.txt" DESTINATION "${LICDIR}" )
# Install icon and desktop file
- INSTALL(FILES "${OpenMW_BINARY_DIR}/openmw.desktop" DESTINATION "${DATAROOTDIR}/applications" COMPONENT "openmw")
+ INSTALL(FILES "${OpenMW_BINARY_DIR}/org.openmw.launcher.desktop" DESTINATION "${DATAROOTDIR}/applications" COMPONENT "openmw")
INSTALL(FILES "${OpenMW_SOURCE_DIR}/files/launcher/images/openmw.png" DESTINATION "${ICONDIR}" COMPONENT "openmw")
INSTALL(FILES "${OpenMW_BINARY_DIR}/openmw.appdata.xml" DESTINATION "${DATAROOTDIR}/metainfo" COMPONENT "openmw")
IF(BUILD_OPENCS)
- INSTALL(FILES "${OpenMW_BINARY_DIR}/openmw-cs.desktop" DESTINATION "${DATAROOTDIR}/applications" COMPONENT "opencs")
+ INSTALL(FILES "${OpenMW_BINARY_DIR}/org.openmw.cs.desktop" DESTINATION "${DATAROOTDIR}/applications" COMPONENT "opencs")
INSTALL(FILES "${OpenMW_SOURCE_DIR}/files/opencs/openmw-cs.png" DESTINATION "${ICONDIR}" COMPONENT "opencs")
ENDIF(BUILD_OPENCS)
diff --git a/files/openmw.appdata.xml b/files/openmw.appdata.xml
index 8271ab6eb..edbeb1a27 100644
--- a/files/openmw.appdata.xml
+++ b/files/openmw.appdata.xml
@@ -1,10 +1,10 @@
- org.openmw.desktop
+ org.openmw.launcher.desktop
CC0-1.0
GPL-3.0 and MIT
OpenMW
@@ -20,6 +20,7 @@ Copyright 2018 Bret Curtis
You will still need the original game data to play OpenMW.
+ org.openmw.launcher.desktop
https://wiki.openmw.org/images/b/b2/Openmw_0.11.1_launcher_1.png
diff --git a/files/openmw-cs.desktop b/files/org.openmw.cs.desktop
similarity index 100%
rename from files/openmw-cs.desktop
rename to files/org.openmw.cs.desktop
diff --git a/files/openmw.desktop b/files/org.openmw.launcher.desktop
similarity index 100%
rename from files/openmw.desktop
rename to files/org.openmw.launcher.desktop