aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/GlobalSettingStation.cpp
diff options
context:
space:
mode:
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 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(".");