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 broken #137

Open
Simon-Laux opened this issue Jul 17, 2024 · 2 comments
Open

drag and drop broken #137

Simon-Laux opened this issue Jul 17, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Simon-Laux
Copy link
Collaborator

In some circumstances drag and drop for sending files with deltachat is not working in the flatpak.

It works in KDE on the Steam Deck (steam os 3.5.19; kde plasma 5.27.5; graphics X11), but for it does not work in gnome (probably wayland).
This was also reported by other users, but I don't remember where.

We need more information to figgure out what went wrong.

@Simon-Laux Simon-Laux added the bug Something isn't working label Jul 17, 2024
@muelli
Copy link
Collaborator

muelli commented Jul 18, 2024

yeah, I guess that the sandbox restricts access to the dropped file path.
I think the proper is to support dnd portal https://docs.flatpak.org/en/latest/portal-api-reference.html#gdbus-org.freedesktop.portal.FileTransfer

but Electron is behind: electron/electron#30650

one can probably work around this problem by opening the sandbox. I would try to avoid that, though.

@Simon-Laux
Copy link
Collaborator Author

I just gave it full file access and it worked, so that confirms your guess.

maybe we should already use the portal api without waiting for an electron implementation. There are some wrapper libraries around that should make it easier than using dbus directly:

I think using the rust lib would be easier, like wrap the functions needed with https://napi.rs and then use them from nodejs. Or maybe even just make a small cli that is called by the dc backend when it is run in flatpak, whatever is easiest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants