diff --git a/thunar/main.c b/thunar/main.c index fc0c91b..64d7f80 100644 --- a/thunar/main.c +++ b/thunar/main.c @@ -122,24 +122,36 @@ thunar_force_spawn_trash (void) /* check that this has not happened yet */ if (thunar_trash_file != NULL) - return; + { + g_print ("Thunar trash file is already cached.\n"); + return; + } /* gvfs has no trash support */ if (!thunar_g_vfs_is_uri_scheme_supported ("trash")) - return; + { + g_print ("Trash URI scheme is not supported.\n"); + return; + } trash = thunar_g_file_new_for_trash (); + if (trash == NULL) + g_print ("GFile trash is NULL.\n"); thunar_trash_file = thunar_file_cache_lookup (trash); if (thunar_trash_file == NULL) { + g_print ("Thunar trash file is not in cache, loading it.\n"); thunar_trash_file = thunar_file_get (trash, NULL); if (thunar_trash_file) { /* schedule a few reloads */ + g_print ("Thunar trash file loaded; scheduling reloads of trash file.\n"); thunar_file_reload_idle (thunar_trash_file); thunar_file_reload_idle_timeout (thunar_trash_file, 2000); thunar_file_reload_idle_timeout (thunar_trash_file, 3000); thunar_file_reload_idle_timeout (thunar_trash_file, 5000); + thunar_file_reload_idle_timeout (thunar_trash_file, 10000); + thunar_file_reload_idle_timeout (thunar_trash_file, 15000); } } g_object_unref (trash);