I would like to empty the system trash the proper way (ie not just rm -rf) and for this I wanted to use glib2, which provides a command called gio trash which can be used to interact with the trash. However when I want to list files found in the trash, I get the message
> sudo gio trash --list [11:22:55]
gio: trash:: Operation not supported
deleting all trashed files using gio trash --empty does not display any output, returns 0 but does not delete any files in the trash.