-
Notifications
You must be signed in to change notification settings - Fork 61
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
Copy "entire" file (not just file content) #244
Comments
Hi, please see #26 In particular, something like this is likely to do what you want:
|
Thanks for the quick reply! Unfortunately, this does not seem to work (and neither do the suggestions from the linked issue thread). In Gnome, when I go to Nautilus and Ctrl+C on a file,
and
and I can easily paste this file into other applications using Ctrl+V. Now I tried doing So this kind of seems like there must be something else that Nautilus is copying into the clipboard compared to wl-copy? |
i came here cuz https://yazi-rs.github.io/docs/tips/#selected-files-to-clipboard wasn't working... what i found was
now i can paste to thunar(maybe nautilus too?) file manager, but not to browser
now i can paste to browser (firefox) can i specify both type at once? |
This especially does not work for portals as they use something different |
Hi, this is still relevant and I would love to be able to do this. My use case is a screenshot script that copies the screenshot file to the clipboard. |
I just created a pull request for this, i am not that good at c, but i hope this will do.. |
Hi @Vaisakhkm2625 . Thanks for the effort and that is definitely better than nothing but there is still some necessary functionality missing because there are certain mime types, like |
So, application/vnd.portal.filetransfer and application/vnd.portal.files are based on a D-Bus protocol: https://github.com/flatpak/xdg-desktop-portal/blob/main/data/org.freedesktop.portal.FileTransfer.xml wl-clipboard currently contains no dbus code. I think it would not be very good to add it just for this. The question is just, how many applications actually depend on that protocol? |
:( i am not sure, but i assume almost all application that packaged under flatpak right? biggest issue is, it feel like it's own sub project, as it's not only need to support things like checking for flatpak permissions but i hope it also need to check for various inconsistencies of the implementations between different DEs... |
Anything running as a Flatpak which on my system is e.g. Telegram, Signal, Discord... |
OK, then I think we need the opinion of the maintainers. My instinct is to say that FlatPak should be responsible for that, i.e., bridging copied files into the flatpak sandbox. But I have no idea how that would work. |
It already handles most of it as long as it's not about files. For files, however, there needs to be special care as the apps cannot access the original location. Generally the toolkits which initiate the copying already take care of that (e.g. GTK for GNOME Files, QT for Dolphin) but as this project completely sidesteps those and does everything manually we will need to do the talking to D-Bus ourselves |
Indeed Flatpak/D-Bus has nothing to do with wl-clipboard. wl-clipboard interacts with the Wayland clipboard, not with clipboard implemented over other protocols like D-Bus or X11. If you want to build an utility for copying files into clipboard in a Flatpak-aware way, you might use wl-clipboard as one of the components it builds on. Another other component might be |
OK, so for wl-clipboard we just need support for multiple mime types. In terms of interface I like the look of something like |
Hi there,
I have looked around this repo, but I haven't found a matching issue.
How can an "entire" file be copied to the clipboard so that it can be pasted into other applications like web-browsers or email-clients (e.g. as attachments)?
When I do something like
$ wl-copy < my_document.pdf
, it appearently only copies the file content, but not the entire file. I can not paste the copied file into another application with Ctrl+V.What is the command to copy the entire file into the clipboard via wl-copy?
The text was updated successfully, but these errors were encountered: