[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.
This commit is contained in:
David Korth 2022-10-19 20:44:08 -04:00
parent ead260291e
commit d514f63a1e
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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)