Instead, use 'cmakedefine' the export the corresponding Cmake build variable. Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@xxxxxxxxx> --- build/deff.h.cmake | 3 +++ src/kernelshark.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build/deff.h.cmake b/build/deff.h.cmake index 82379df..4302f00 100644 --- a/build/deff.h.cmake +++ b/build/deff.h.cmake @@ -11,6 +11,9 @@ /** KernelShark Version number. */ #cmakedefine KS_VERSION_STRING "@KS_VERSION_STRING@" +/** KernelShark Application name. */ +#cmakedefine KS_APP_NAME "@KS_APP_NAME@" + /** KernelShark installation prefix path. */ #cmakedefine _INSTALL_PREFIX "@_INSTALL_PREFIX@" diff --git a/src/kernelshark.cpp b/src/kernelshark.cpp index c373f54..1ad15f4 100644 --- a/src/kernelshark.cpp +++ b/src/kernelshark.cpp @@ -56,7 +56,7 @@ int main(int argc, char **argv) int c; QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); - QApplication::setDesktopFileName("kernelshark"); + QApplication::setDesktopFileName(KS_APP_NAME); QApplication a(argc, argv); KsMainWindow ks; -- 2.32.0