aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-01-21 23:02:07 +0000
committersaturneric <[email protected]>2025-01-21 23:02:07 +0000
commita81dc7a018b0515d67206b0e0722177d91fdea3c (patch)
treec1cca5b9c103d818db14efbfa2243d6fa9125d5a
parentfix: make app fully portable (diff)
downloadGpgFrontend-a81dc7a018b0515d67206b0e0722177d91fdea3c.tar.gz
GpgFrontend-a81dc7a018b0515d67206b0e0722177d91fdea3c.zip
fix: create app config path if possible
-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 d57f8b3e..5c6149df 100644
--- a/src/core/function/GlobalSettingStation.cpp
+++ b/src/core/function/GlobalSettingStation.cpp
@@ -61,6 +61,11 @@ class GlobalSettingStation::Impl {
#if defined(_WIN32) || defined(WIN32)
LOG_I() << "app config path: " << app_config_path_;
if (!QDir(app_config_path_).exists()) QDir(app_config_path_).mkpath(".");
+#else
+ if (IsProtableMode()) {
+ LOG_I() << "app config path: " << app_config_path_;
+ if (!QDir(app_config_path_).exists()) QDir(app_config_path_).mkpath(".");
+ }
#endif
if (!QDir(app_data_path_).exists()) QDir(app_data_path_).mkpath(".");