From 2bbc25a630c4e5ae7d666bff7cc878ae6e04ef81 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Fri, 22 Jan 2021 23:22:02 -0500 Subject: [PATCH] Use g_get_user_special_dir for documents dir on gtk --- libs/kiplatform/gtk/environment.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/kiplatform/gtk/environment.cpp b/libs/kiplatform/gtk/environment.cpp index 1a87bcb56e..41919d756d 100644 --- a/libs/kiplatform/gtk/environment.cpp +++ b/libs/kiplatform/gtk/environment.cpp @@ -18,6 +18,7 @@ * with this program. If not, see . */ +#include #include #include @@ -49,5 +50,5 @@ bool KIPLATFORM::ENV::IsNetworkPath( const wxString& aPath ) wxString KIPLATFORM::ENV::GetDocumentsDir() { - return wxStandardPaths::Get().GetDocumentsDir(); + return g_get_user_special_dir( G_USER_DIRECTORY_DOCUMENTS ); } \ No newline at end of file