aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/GlobalSettingStation.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-12-06 13:10:48 +0000
committersaturneric <[email protected]>2023-12-06 13:18:07 +0000
commita0f0fd98efa12ef33959badcc25ff568e8b242b4 (patch)
tree860563fdbfe353e57724b08c4eb30dc03d5f8a7d /src/core/function/GlobalSettingStation.cpp
parentfeat: convert basic opera to async style (diff)
downloadGpgFrontend-a0f0fd98efa12ef33959badcc25ff568e8b242b4.tar.gz
GpgFrontend-a0f0fd98efa12ef33959badcc25ff568e8b242b4.zip
feat: move test to src and add submodule googletest
Diffstat (limited to 'src/core/function/GlobalSettingStation.cpp')
-rw-r--r--src/core/function/GlobalSettingStation.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/function/GlobalSettingStation.cpp b/src/core/function/GlobalSettingStation.cpp
index 5dc10dc1..5031effe 100644
--- a/src/core/function/GlobalSettingStation.cpp
+++ b/src/core/function/GlobalSettingStation.cpp
@@ -28,6 +28,8 @@
#include "GlobalSettingStation.h"
+#include <qcoreapplication.h>
+
#include "core/utils/FilesystemUtils.h"
#include "core/utils/IOUtils.h"
@@ -216,11 +218,14 @@ class GlobalSettingStation::Impl
private:
std::filesystem::path app_path_ = QCoreApplication::applicationDirPath()
.toStdString(); ///< Program Location
+
std::filesystem::path app_data_path_ =
QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation)
.toStdString(); ///< Program Data Location
+
std::filesystem::path app_log_path_ =
app_data_path_ / "logs"; ///< Program Data Location
+
std::filesystem::path app_data_objs_path_ =
app_data_path_ / "data_objs"; ///< Object storage path