Summary: | ark cannot drag and drop files to arbitrary apps (e.g. mpv, pcmanfm-qt) due to lack of XDS support | ||
---|---|---|---|
Product: | [Applications] ark | Reporter: | Walter Lapchynski <wxl> |
Component: | general | Assignee: | Elvis Angelaccio <elvis.angelaccio> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | Hi-Angel, nate, nicolas.fella, pihug12+kde, rthomsen6 |
Priority: | NOR | ||
Version: | 19.04.1 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Walter Lapchynski
2019-06-03 05:21:14 UTC
Please report this to the pcmanfm-qt developers. They need to call the ark dbus api, similar to what dolphin does: https://cgit.kde.org/dolphin.git/tree/src/views/draganddrophelper.cpp I don't know how they handle the other archivers. Would be interesting to have a standard way to extract files, if possible. I submitted a new issue: https://github.com/lxqt/pcmanfm-qt/issues/977 but also asked if they have any suggestion on how to do this in a more standard way to share it upstream. LXQt has their own archiver (or rather, will; it hasn't hit v1 yet) and they have a generalized methodology to DND to anywhere using pure Qt methods: https://github.com/lxqt/lxqt-archiver/pull/93 Might be a nice alternative to forcing every single app that wants to interact with ark to have to write code specific to it. I mean if every file manager is expected to do that, it seems a little silly, especially if all the other archivers had the same expectation. And as it turns out, file-roller and engrampa use Freedesktop's Direct Save Protocol (XDS) which seems about as standard as it comes: https://www.freedesktop.org/wiki/Specifications/XDS/ (In reply to Elvis Angelaccio from comment #1) > Please report this to the pcmanfm-qt developers. They need to call the ark > dbus api, similar to what dolphin does: > https://cgit.kde.org/dolphin.git/tree/src/views/draganddrophelper.cpp > > I don't know how they handle the other archivers. Would be interesting to > have a standard way to extract files, if possible. The pcmanfm-qt report for the same problem has a link to this PR in lxqt-archiver https://github.com/lxqt/lxqt-archiver/pull/93 As I understand from what it says, they managed to find "a standard way to extract files". (In reply to Walter Lapchynski from comment #4) > And as it turns out, file-roller and engrampa use Freedesktop's Direct Save > Protocol (XDS) which seems about as standard as it comes: > https://www.freedesktop.org/wiki/Specifications/XDS/ Interesting, this is something we could support, but of course someone needs to do the work (patches welcome). *** Bug 425938 has been marked as a duplicate of this bug. *** I recently looked into this and it's not that easy: 1. XDS is not trivial to implement with Qt's DnD API (since you need write access to DnD data) 2. XDS does not work on Wayland, presumably due to the same reason. See also https://gitlab.gnome.org/GNOME/file-roller/-/issues/4 A better solution might be to have Ark offer access to the archive via a virtual (fuse) filesystem. That way the receiving app would see a regular file and Ark would automatically decompress it on the fly See e.g. https://github.com/bugnano/archivefs |