-
Notifications
You must be signed in to change notification settings - Fork 13
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
Possible to implement Drag-and-Drop files (DnD Portals API)? #16
Comments
Should just work in GTK4 once that transition happens. |
@TingPing Ah if I understood that right, the problem is that Celluloid doesn't yet use GTK4? https://github.com/celluloid-player/celluloid. |
Correct. That change alone should fix it. |
The portal could also be backported to GTK 3. The app you're dragging from (eg. Nautilus) needs to support the portal, since Nautilus is also on GTK 3 this issue is blocked on that too. So if the portal is backported to GTK 3 that would fix everything needed (provided apps update to newer GTK 3). |
I think its a large enough task that I wouldn't expect to happen on its own. Its actually probably less friction to port Celluloid to GTK4 and I imagine would happen at some point anyway. |
Celluloid uses GTK4 since v0.22 (Nov 5, 2021). |
The manual "Open a file" dialog works properly in Celluloid and calls the Portals API to be able to see the whole filesystem and get access to whatever file that you tell it to open.
Dragging-and-dropping files doesn't work, though.
However, I read about the "filetransfer" portal which adds drag and drop support to applications. Is this possible to implement in Celluloid, or is it still too early to support it?
Here are the related topics I've found about "drag and drop portals". Seems like it's a very new feature:
flatpak/flatpak#1143
flatpak/xdg-desktop-portal#99
https://github.com/flathub/org.telegram.desktop/issues/23
The text was updated successfully, but these errors were encountered: