g_file_trash() does not work on directories inside a sandbox
Running g_file_trash inside a flatpak will fail if the GFile represents a directory.
See: https://github.com/flatpak/xdg-desktop-portal/issues/630
Edited by Philip Withnall
Running g_file_trash inside a flatpak will fail if the GFile represents a directory.
See: https://github.com/flatpak/xdg-desktop-portal/issues/630