diff mbox series

[v2,19/23] kernel-shark-qt: Add kernelshark.desktop file

Message ID 20181016155232.5257-20-ykaradzhov@vmware.com (mailing list archive)
State Accepted
Headers show
Series Add Qt-based GUI for KernelShark | expand

Commit Message

Yordan Karadzhov Oct. 16, 2018, 3:53 p.m. UTC
From: Yordan Karadzhov (VMware) <y.karadz@gmail.com>

Instruct CMake to generate kernelshark.desktop. This file is used to
add the KernelShark application in the desktop menus.

Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
---
 kernel-shark-qt/CMakeLists.txt         | 3 +++
 kernel-shark-qt/build/cmake_clean.sh   | 1 +
 kernel-shark-qt/build/ks.desktop.cmake | 9 +++++++++
 3 files changed, 13 insertions(+)
 create mode 100644 kernel-shark-qt/build/ks.desktop.cmake
diff mbox series

Patch

diff --git a/kernel-shark-qt/CMakeLists.txt b/kernel-shark-qt/CMakeLists.txt
index 0ccb61e..278241b 100644
--- a/kernel-shark-qt/CMakeLists.txt
+++ b/kernel-shark-qt/CMakeLists.txt
@@ -75,4 +75,7 @@  if (_DOXYGEN_DOC AND DOXYGEN_FOUND)
 
 endif ()
 
+configure_file( ${KS_DIR}/build/ks.desktop.cmake
+                ${KS_DIR}/kernelshark.desktop)
+
 message("")
diff --git a/kernel-shark-qt/build/cmake_clean.sh b/kernel-shark-qt/build/cmake_clean.sh
index 4f984db..ea04dc0 100755
--- a/kernel-shark-qt/build/cmake_clean.sh
+++ b/kernel-shark-qt/build/cmake_clean.sh
@@ -6,6 +6,7 @@  rm -rf CMakeFiles/
 rm -rf src/
 rm -rf examples/
 rm -f ../lib/*
+rm ../kernelshark.desktop
 rm -f ../src/KsCmakeDef.hpp
 rm -f CMakeDoxyfile.in
 rm -f CMakeDoxygenDefaults.cmake
diff --git a/kernel-shark-qt/build/ks.desktop.cmake b/kernel-shark-qt/build/ks.desktop.cmake
new file mode 100644
index 0000000..0b947f1
--- /dev/null
+++ b/kernel-shark-qt/build/ks.desktop.cmake
@@ -0,0 +1,9 @@ 
+[Desktop Entry]
+Version=@KS_VERSION_STRING@
+Type=Application
+Name=Kernel Shark
+GenericName=Kernel Shark
+Comment=
+Exec=/usr/local/bin/kernelshark
+Icon=@KS_DIR@/icons/ksharkicon.png
+Terminal=false