Skip to content
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

Drag and Drop not working from xarchiver to thunar in wayland, but work reversed #196

Closed
benyaminl opened this issue Aug 11, 2024 · 2 comments
Labels

Comments

@benyaminl
Copy link

benyaminl commented Aug 11, 2024

Hello,

I just want to report a case, I don't know whether it's part of xarchiver works or not (probably not), which I found when drag and drop on xwayland using gnome wayland broken from both xwayland based apps. (to be honest I also tried engrampa, and it yield the same result, probably wayland?)

example I open zip file, and try to drag and drop files from xarchiver to thunar. The action does give feedback on UI that we can drag and drop and + on thunar, but after drops, the files isn't extracted.

I tried running both apps using terminal, yield no errors (probably because how wayland and X having different protocol, based on https://gitlab.gnome.org/GNOME/file-roller/-/issues/4)

But the strange thing is, when I have file in thunar, drag it to xarchiver, it will automatically add the file to the existing archives. Can any of the maintainer look into this? If it's not possible because of wayland, I think it's fine., I just curious why it works only for archiving but not on extracting.

Thanks you

EDIT: mate-desktop/engrampa#423 (comment) (for some reason seems lxqt-archiver is working with drag and drop, well.... hmmm.. it's interesting)

Some videos of the files extract

Screencast.from.2024-08-11.10-11-08.mp4
@ib
Copy link
Owner

ib commented Aug 14, 2024

Your assumption is correct. It is due to wayland and a missing protocol.

The XDS dnd file saving protocol is used so that the file manager tells the archiver where to extract to, i.e. the direction xarchiver -> thunar (and implicitly through the protocol also thunar -> xarchiver automatically back again). This requires the file manager to read a window property, but this is not implemented for wayland in GTK.

The other way around, i.e. file manager -> archiver, to get the list of files to add, works through a file list and does not require a special X property.

As you can read in the missing protocol link above, neither side (nor wayland or GTK) is interested in bringing back XDS dnd file saving.

@ib ib added the invalid label Aug 14, 2024
@benyaminl
Copy link
Author

benyaminl commented Aug 19, 2024

Thanks for clarifying @ib

I will close this ticket. Hopefully in the future, there will be bridge for this, and the drag and drop keep working again, as more and more distro and WM forcing wayland by default and start droping X11

Thanks for keeping xarchiver alive.

Anyway DragDrop can be replaced or solved with same folder the file is residing, related to #195

Not as perfect as it's, but well, it's great alternative I think (imo)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants