-
Notifications
You must be signed in to change notification settings - Fork 88
add file_list
to Set
interface
#181
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
base: master
Are you sure you want to change the base?
Conversation
It seems like the best generic interface we could expose is
I was experimenting with the above in this playground link, for reference. Do you think its worth just dealing with the current limitation on Windows and seeing if it can be removed via either a PR to |
It depends on which behavior we want. On Linux and MacOs the argument is |
That sounds reasonable to me; the Win32 code for this isn't super bad. We already have some primitives for clipboard memory allocation due to image support. I pretty heavily value cross-platform consistency in One thought came to me over the weekend I'd like to ask about regarding invalid paths: Can you think of any use cases or needs for "dropping" a list of files on the clipboard that aren't proper file URIs, such as app-specific URIs ( |
Certainly, we can expand support for more uri types later on. |
Had to modify a bit For some reason, |
It doesn't look like Chromium does, so I don't think we need to. They create a |
on Windows |
Sorry, missed your comment. I learn towards not wanting to introduce UNC paths because since we're very reliant on other applications reading the pasteboard to know how to handle them correctly. |
We should decide what type of input we accept.
On windows
clipboard_win::raw::set_file_list
is used which has as parameter&[impl AsRef<str>]
and doesn't check if the input is actually a path; on linux and osx the parameter is of type&[impl AsRef<Path>]
andcanonicalize()
is called so non existing paths get discarded