Qt: Fix install path of XDG desktop file with DESTDIR

This commit is contained in:
Jeffrey Pfau 2015-08-18 22:32:59 -07:00
parent 7be183940c
commit 31d41cf2f6
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
0.4.1: (Future)
0.3.1: (Future)
Bugfixes:
- Qt: Windows no longer spawn in the top left on first launch
- Qt: Fix install path of XDG desktop file with DESTDIR
0.3.0: (2015-08-16)
Features:

View File

@ -167,7 +167,7 @@ install(TARGETS ${BINARY_NAME}-qt
if(UNIX AND NOT APPLE)
find_program(DESKTOP_FILE_INSTALL desktop-file-install)
if(DESKTOP_FILE_INSTALL)
install(CODE "execute_process(COMMAND ${DESKTOP_FILE_INSTALL} \"${CMAKE_SOURCE_DIR}/res/mgba-qt.desktop\" --dir \"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/applications/\")")
install(CODE "execute_process(COMMAND ${DESKTOP_FILE_INSTALL} \"${CMAKE_SOURCE_DIR}/res/mgba-qt.desktop\" --dir \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/applications/\")")
endif()
endif()
if(UNIX)