diff --git a/Modules/Visualization/MonteverdiGui/CMakeLists.txt b/Modules/Visualization/MonteverdiGui/CMakeLists.txt index d503daf285d81eac54f3688603ff6e8b9d2baab3..37f9984e1ddbabc5b30532cf9802c06bfee4d2d0 100644 --- a/Modules/Visualization/MonteverdiGui/CMakeLists.txt +++ b/Modules/Visualization/MonteverdiGui/CMakeLists.txt @@ -42,8 +42,7 @@ if (UNIX AND NOT APPLE) # ------------------------- # Install freedesktop entry - configure_file(${OTBMonteverdiGUI_DATA_DIR}/monteverdi.desktop.in ${CMAKE_BINARY_DIR}/monteverdi.desktop) - install(FILES ${CMAKE_BINARY_DIR}/monteverdi.desktop + install(FILES ${OTBMonteverdiGUI_DATA_DIR}/monteverdi.desktop DESTINATION share/applications) endif() diff --git a/Utilities/Data/monteverdi.desktop.in b/Utilities/Data/monteverdi.desktop similarity index 70% rename from Utilities/Data/monteverdi.desktop.in rename to Utilities/Data/monteverdi.desktop index ee8b5f1a2b74f5af426f794e7e6c9a2964795d3b..2e791673b964a8fac739bdafbf2ca275a2a6e64e 100644 --- a/Utilities/Data/monteverdi.desktop.in +++ b/Utilities/Data/monteverdi.desktop @@ -4,8 +4,8 @@ Name=Monteverdi Name[fr_FR]=Monteverdi GenericName=Image processing Comment=Remote sensing image processing application based on OrfeoToolbox -TryExec=@CMAKE_INSTALL_PREFIX@/bin/monteverdi -Exec=env OTB_APPLICATION_PATH=@CMAKE_INSTALL_PREFIX@/@OTB_INSTALL_APP_DIR@ @CMAKE_INSTALL_PREFIX@/bin/monteverdi %F +TryExec=/usr/bin/monteverdi +Exec=/usr/bin/monteverdi %F Terminal=false StartupNotify=false Icon=monteverdi