Since it's a file selection widget, we should only list recently used
files that point to a file.
Fixes: #5650
uri = gtk_recent_info_get_uri (info);
+ if (!g_str_has_prefix (uri, "file://"))
+ continue;
+
file = g_file_new_for_uri (uri);
parent = g_file_get_parent (file);
g_object_unref (file);
GtkRecentInfo *info = l->data;
GFile *file;
+ const char *uri = gtk_recent_info_get_uri (info);
+ if (!g_str_has_prefix (uri, "file://"))
+ continue;
+
if (gtk_recent_info_get_private_hint (info) &&
!gtk_recent_info_has_application (info, app_name))
continue;