From 20f00f4a3aeeba4c76f2e79ac6cbd791f6d455ca Mon Sep 17 00:00:00 2001 From: Roland Kaufmann Date: Tue, 26 Mar 2013 23:48:26 +0100 Subject: [PATCH] Put launcher for ResInsight in desktop environment --- ApplicationCode/CMakeLists.txt | 15 +++++++++++++++ ApplicationCode/resinsight.desktop.in | 10 ++++++++++ 2 files changed, 25 insertions(+) create mode 100644 ApplicationCode/resinsight.desktop.in diff --git a/ApplicationCode/CMakeLists.txt b/ApplicationCode/CMakeLists.txt index e1b46f3602..7995ceb2e2 100644 --- a/ApplicationCode/CMakeLists.txt +++ b/ApplicationCode/CMakeLists.txt @@ -316,4 +316,19 @@ else (PRIVATE_INSTALL) DESTINATION share/doc/ResInsight ) # no bundled libraries for system install + # application icon + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/Resources/AppLogo48x48.png + DESTINATION share/icons/hicolor/48x48/apps + RENAME ResInsight.png + ) + # desktop environment icon; remember to call `update-desktop-database` + # in package post-install scripts + configure_file ( + ${CMAKE_CURRENT_SOURCE_DIR}/resinsight.desktop.in + ${CMAKE_CURRENT_BINARY_DIR}/resinsight.desktop + @ONLY + ) + install (FILES ${CMAKE_CURRENT_BINARY_DIR}/resinsight.desktop + DESTINATION share/applications + ) endif (PRIVATE_INSTALL) diff --git a/ApplicationCode/resinsight.desktop.in b/ApplicationCode/resinsight.desktop.in new file mode 100644 index 0000000000..585886c3f8 --- /dev/null +++ b/ApplicationCode/resinsight.desktop.in @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Terminal=false +StartupNotify=true +Icon=@CMAKE_INSTALL_PREFIX@/share/icons/hicolor/48x48/apps/ResInsight.png +ame=ResInsight +Comment=3D viewer and post processing tool for reservoir models +Exec=@CMAKE_INSTALL_PREFIX@/bin/ResInsight +Categories=Applications;Science;