File 0001-Fix-excluded-template-location.patch of Package kdrive
From 6d5445966233e27271a19cd38313844bb300112f Mon Sep 17 00:00:00 2001
From: Christophe Marin <christophe@krop.fr>
Date: Thu, 24 Apr 2025 02:24:20 +0200
Subject: [PATCH] Fix excluded template location
---
src/libcommonserver/utility/utility.cpp | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/libcommonserver/utility/utility.cpp b/src/libcommonserver/utility/utility.cpp
index 601120dda..fc78f6dab 100644
--- a/src/libcommonserver/utility/utility.cpp
+++ b/src/libcommonserver/utility/utility.cpp
@@ -22,6 +22,8 @@
#include "libcommon/utility/utility.h"
#include "libcommonserver/io/iohelper.h"
+#include "log/log.h"
+
#include "utility/utility_base.h"
#if defined(KD_MACOS)
@@ -432,9 +434,11 @@ SyncPath Utility::getExcludedAppFilePath(const bool test /*= false*/) {
SyncPath Utility::getExcludedTemplateFilePath(const bool test /*= false*/) {
if (test) return excludedTemplateFileName;
- auto canonicalPath = std::filesystem::weakly_canonical(CommonUtility::getAppWorkingDir() / SyncPath{resourcesPath} /
- excludedTemplateFileName);
- return canonicalPath.make_preferred();
+ std::filesystem::path templateFilePath = (SYSCONFDIR "/" APPLICATION_NAME "/sync-exclude.lst");
+
+ LOG_INFO(Log::instance()->getLogger(), "sync-exclude.lst path: " << templateFilePath.c_str());
+
+ return templateFilePath;
}
SyncPath Utility::binRelativePath() {
--
2.51.1