File::moveToTrash fails on some Linux

I’ve had reports from some Linux users that files aren’t being correctly moved to the trash.
It looks like this tries to move the files to ~/.local/share/Trash/files

Apparently that isn’t the correct behaviour on some Linux flavours.

It seems like <gio/gio.h> and g_file_trash is the most common way of doing this?
Any chance of adding that as a backup if the move to ~/.local/share/Trash/files fails and the gio header is available?