Bug 495552 - Drag-and-drop to the app doesn't work when it's packaged as a Flatpak
Summary: Drag-and-drop to the app doesn't work when it's packaged as a Flatpak
Status: CONFIRMED
Alias: None
Product: NeoChat
Classification: Applications
Component: General (show other bugs)
Version: 24.08.2
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: Tobias Fella
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-29 22:04 UTC by Nate Graham
Modified: 2024-11-12 18:15 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2024-10-29 22:04:46 UTC
Presumably due to a lack of implementation of the org.freedesktop.portal.FileTransfer portal: https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.FileTransfer.html

Can be worked around by giving the app access to all user files, but this is insecure, non-ideal, and will make the app's page show a nastygram about it.
Comment 1 Joshua Goins 2024-11-09 23:56:10 UTC
While I appreciate the bug report, this isn't really actionable on NeoChat's end. Is there a better place to put this, xdg-desktop-portal-kde maybe?
Comment 2 Nate Graham 2024-11-12 15:51:03 UTC
Ahh, I hadn't realized we don't yet implemented in our portal. I thought we did but NeoChat simply hadn't added support for it yet.
Comment 3 Nate Graham 2024-11-12 15:52:44 UTC
Marking as blocked by Bug 496181.
Comment 4 Nicolas Fella 2024-11-12 16:37:31 UTC
There's nothing missing in xdg-desktop-portal-kde.

Neochat needs to use the KUrlMimeData API, or wait for Qt to get support for this (https://codereview.qt-project.org/c/qt/qtbase/+/513987)
Comment 5 Joshua Goins 2024-11-12 18:15:58 UTC
(In reply to Nicolas Fella from comment #4)
> There's nothing missing in xdg-desktop-portal-kde.
> 
> Neochat needs to use the KUrlMimeData API, or wait for Qt to get support for
> this (https://codereview.qt-project.org/c/qt/qtbase/+/513987)

From your PoV, what would be more sensible right now? In my opinion, this feels like a failure of the integration between Qt and Flatpak's here from an application programmer PoV. But maybe just using KUrlMimeData to fix this in the meantime is okay enough. It doesn't look like the Qt CR is making much progress recently...