Use g_get_user_special_dir for documents dir on gtk

This commit is contained in:
Marek Roszko 2021-01-22 23:22:02 -05:00
parent e6dd95e83a
commit 2bbc25a630
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <glib.h>
#include <gio/gio.h>
#include <kiplatform/environment.h>
@ -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 );
}