Fix criticals in g_file_info_get_name with trashed files
Per the enumerate_children
docs, G_FILE_ATTRIBUTE_STANDARD_NAME
attributes must be gathered to avoid criticals like this when
iterating over the files:
GFileInfo created without standard::name
file ../gio/gfileinfo.c: line 1713 (g_file_info_get_name): should not be reached
Related bug reports:
- thunar#1527 (closed)
- https://gitlab.gnome.org/GNOME/gvfs/-/issues/777
- https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/2103737
- https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/2115014
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1070716
Docs:
Edited by correctmost