-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix implementation of move_to_trash() on Linux #44021
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! See my comments for details, otherwise the code looks fine. I haven't tested though.
Are there known use cases for gio trash
and gvfs-trash
not supported? I wonder if we still need the manual fallback case at all.
The gio/gvfs-trash functions seem to be part of the GNOME/GTK stack. I don't know if this commands work at all |
I've made some tests on Ubuntu/Gnome and it works fine with the 3 methods. The only difference is in the manual fallback, the |
I do have That being said, KDE does have its own "io" client
Tested locally with:
And it seems to work fine. I think KDE4 had |
Could you add support for I'd suggest this order:
|
Fixes godotengine#42840 OS move_to_trash() on Linux is not compliant with the Freedesktop specification
I did the changes you requested. Sorry for the delay. |
Thanks! |
Cherry-picked for 3.4. |
Modifies move_to_trash() on Linux
Fixes #42840 OS move_to_trash() on Linux is not compliant with the Freedesktop specification