diff options
Diffstat (limited to 'freefilesync/ffs_xdg_config_dir.patch')
-rw-r--r-- | freefilesync/ffs_xdg_config_dir.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/freefilesync/ffs_xdg_config_dir.patch b/freefilesync/ffs_xdg_config_dir.patch new file mode 100644 index 0000000..6f27ab7 --- /dev/null +++ b/freefilesync/ffs_xdg_config_dir.patch @@ -0,0 +1,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__ |