diff --git a/CMakeLists.txt b/CMakeLists.txt index e08235e3bc1..7d3daa5fbb9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1333,7 +1333,7 @@ if(CPACK) find_program(DFI desktop-file-install) if(DFI) - execute_process(COMMAND ${DFI} --dir=${CMAKE_BINARY_DIR} ${desktop_file}) + execute_process(COMMAND ${DFI} --dir=${CMAKE_BINARY_DIR} --set-key=Exec --set-value=${BIN_TARGET} ${desktop_file}) set(desktop_file "${CMAKE_BINARY_DIR}/${desktop_file_name}") endif()