From f5cf83e4b3fdf1e9ae82b00f39e45e189809c419 Mon Sep 17 00:00:00 2001 From: saturneric Date: Fri, 15 Dec 2023 17:04:59 +0800 Subject: fix: slove some issues on memory and intilizations --- src/core/function/GlobalSettingStation.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/core/function/GlobalSettingStation.cpp') diff --git a/src/core/function/GlobalSettingStation.cpp b/src/core/function/GlobalSettingStation.cpp index 5031effe..d1c1068e 100644 --- a/src/core/function/GlobalSettingStation.cpp +++ b/src/core/function/GlobalSettingStation.cpp @@ -28,7 +28,8 @@ #include "GlobalSettingStation.h" -#include +#include +#include #include "core/utils/FilesystemUtils.h" #include "core/utils/IOUtils.h" @@ -216,8 +217,9 @@ class GlobalSettingStation::Impl } private: - std::filesystem::path app_path_ = QCoreApplication::applicationDirPath() - .toStdString(); ///< Program Location + std::filesystem::path app_path_ = + std::filesystem::path(boost::dll::program_location().string()) + .parent_path(); std::filesystem::path app_data_path_ = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation) -- cgit v1.2.3