24#include <wx/filename.h>
35 if( wxGetEnv( wxT(
"XDG_CURRENT_DESKTOP" ), &wm ) && wm.CmpNoCase( wxT(
"Unity" ) ) == 0 )
36 wxSetEnv( wxT(
"UBUNTU_MENUPROXY" ), wxT(
"0" ) );
38#if !wxUSE_GLCANVAS_EGL
41 wxSetEnv( wxT(
"GDK_BACKEND" ), wxT(
"x11" ) );
47 wxSetEnv( wxT(
"GDK_CORE_DEVICE_EVENTS" ), wxT(
"1" ) );
53 GError* err =
nullptr;
54 GFile* file = g_file_new_for_path( aPath.fn_str() );
56 bool retVal = g_file_trash( file,
nullptr, &err );
60 aError = err->message;
62 g_clear_error( &err );
63 g_object_unref( file );
78 wxString docsPath = g_get_user_data_dir();
80 if( docsPath.IsEmpty() )
84 fallback.AssignDir( g_get_home_dir() );
85 fallback.AppendDir( wxT(
".local" ) );
86 fallback.AppendDir( wxT(
"share" ) );
87 fallback.MakeAbsolute();
89 docsPath = fallback.GetFullPath();
98 return g_get_user_config_dir();
104 return g_get_user_data_dir();
110 return g_get_user_data_dir();
116 return g_get_user_cache_dir();