From d514f63a1e5c3edce9f6aecfbb80631d5ee94ba2 Mon Sep 17 00:00:00 2001 From: David Korth Date: Wed, 19 Oct 2022 20:44:08 -0400 Subject: [PATCH] [xdg] CMakeLists.txt: Fix installation of rp-config.desktop. Need to use RENAME to rename the file, not INSTALL. Using INSTALL ends up creating a subdirectory instead of renaming the file. Fixes #367: "rp-config.desktop" file error Reported by @Amnesia1000. --- NEWS.md | 3 +++ xdg/CMakeLists.txt | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index bc329d578..5fa9308ad 100644 --- a/NEWS.md +++ b/NEWS.md @@ -14,6 +14,9 @@ error for some symbol types. * Merged #359: [libromdata] ELFPrivate::addSymbolFields(): fix the symbol type names * Submitted by @DankRank. + * xdg: Install rp-config.desktop correctly. + * Fixes #367: "rp-config.desktop" file error + * Reported by @Amnesia1000. * Other changes: * libromdata's SOVERSION was bumped to 2 due to an ABI change in diff --git a/xdg/CMakeLists.txt b/xdg/CMakeLists.txt index 272ae09da..df132f873 100644 --- a/xdg/CMakeLists.txt +++ b/xdg/CMakeLists.txt @@ -13,7 +13,8 @@ INCLUDE(DirInstallPaths) # Desktop file IF(DIR_INSTALL_XDG_DESKTOP) INSTALL(FILES rp-config.desktop - DESTINATION "${DIR_INSTALL_XDG_DESKTOP}/com.gerbilsoft.rom-properties.rp-config.desktop" + RENAME com.gerbilsoft.rom-properties.rp-config.desktop + DESTINATION "${DIR_INSTALL_XDG_DESKTOP}" COMPONENT "xdg") ENDIF(DIR_INSTALL_XDG_DESKTOP)