From 13b53683a5d00415866c6daf1884612c3f0ba83e Mon Sep 17 00:00:00 2001 From: Bent Witthold Date: Sat, 1 Nov 2025 10:52:04 +0100 Subject: [PATCH] Retrieving Application name from umbrella project and using it to determine the path of the QtMaintenanceTool. --- genericcore.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/genericcore.cpp b/genericcore.cpp index e8e61ea..7ec4636 100644 --- a/genericcore.cpp +++ b/genericcore.cpp @@ -7,6 +7,7 @@ #include #include +#include "../../ApplicationConfig.h" #include "CoreConfig.h" #include "constants.h" @@ -70,7 +71,7 @@ QString GenericCore::getMaintenanceToolFilePath() const { /// setting the applicationDirPath hard coded to test update feature from IDE #ifdef QT_DEBUG // REFACTOR retrieve application name automatically instead of using hard coded name - applicationDirPath = "/opt/GenericQtClient"; + applicationDirPath = QString("/opt/%1").arg(APPLICATION_NAME); #endif #ifdef Q_OS_MAC