-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
use file transfer to support copy and paste of files #3329
Comments
Here's what happens when copying a file (summary) at present:
We currently discard On MS Windows, we're meant to use CF_HDROP: Read different types of clipboard data with ctypes in python |
and use a dedicate method for each direction
The big hurdle is how so many applications greedily request the file URIs. Here's a patch that starts adding support for file targets by translating the gnome / mate specific targets to a generic name we can then handle ourselves:
One way to solve this without transferring the files whenever they are copied onto the clipboard would be to use python-fuse to create a temporary holding area. |
So we can select a file in the file manager and paste it in the local one.
For gnome, this means intercepting
x-special/gnome-copied-files
and sending the file via the file-transfer feature, then if the client accepts the transfer then we can reply with a path to the file we have transferred over.This may be a problem and trigger timeouts... perhaps the file transfer feature will need a new option to allow clipboard transfers without waiting for confirmation?
The text was updated successfully, but these errors were encountered: