summaryrefslogtreecommitdiff
path: root/freefilesync/ffs_xdg_config_dir.patch
blob: 6f27ab795482df4790657087be17c673a791914f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff -Naur 10.6-0/FreeFileSync/Source/base/ffs_paths.cpp 10.6-1/FreeFileSync/Source/base/ffs_paths.cpp
--- 10.6-0/FreeFileSync/Source/base/ffs_paths.cpp	2018-11-13 06:58:40.771249592 -0500
+++ 10.6-1/FreeFileSync/Source/base/ffs_paths.cpp	2018-11-14 21:39:14.715702415 -0500
@@ -85,8 +85,11 @@
     else //OS standard path (XDG layout): ~/.config/FreeFileSync
     {
         //wxBug: wxStandardPaths::GetUserDataDir() does not honor FileLayout_XDG flag
-        wxStandardPaths::Get().SetFileLayout(wxStandardPaths::FileLayout_XDG);
-        cfgFolderPath = appendSeparator(utfTo<Zstring>(wxStandardPaths::Get().GetUserConfigDir())) + "FreeFileSync";
+
+        // Fedora 28 does not ship wxgtk 3.1.1...
+        // So subsitute a hard-coded name instead of requesting file layout of XDG
+        //wxStandardPaths::Get().SetFileLayout(wxStandardPaths::FileLayout_XDG);
+        cfgFolderPath = appendSeparator(utfTo<Zstring>(wxStandardPaths::Get().GetUserConfigDir())) + appendSeparator(utfTo<Zstring>(".config")) + "FreeFileSync";
     }
 
 #ifdef __GNUC__
bgstack15