summarylogtreecommitdiffstats
path: root/revert_xdg_config_path.patch
blob: 8be48f790d67e0d284990cc2abc713555b985080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff -r -u2 a/FreeFileSync/Source/base/ffs_paths.cpp b/FreeFileSync/Source/base/ffs_paths.cpp
--- a/FreeFileSync/Source/base/ffs_paths.cpp	2018-12-12 15:02:09.000000000 +0100
+++ b/FreeFileSync/Source/base/ffs_paths.cpp	2019-01-03 00:56:19.364918282 +0100
@@ -83,9 +83,7 @@
     if (isPortableVersion())
         cfgFolderPath = getExeFolderParentPath();
-    else //OS standard path (XDG layout): ~/.config/FreeFileSync
+    else //OS standard path (classic layout): ~/.FreeFileSync
     {
-        //wxBug: wxStandardPaths::GetUserDataDir() does not honor FileLayout_XDG flag
-        wxStandardPaths::Get().SetFileLayout(wxStandardPaths::FileLayout_XDG);
-        cfgFolderPath = appendSeparator(utfTo<Zstring>(wxStandardPaths::Get().GetUserConfigDir())) + "FreeFileSync";
+        cfgFolderPath = utfTo<Zstring>(wxStandardPaths::Get().GetUserDataDir());
     }