nextcloud / nextcloud/talk-desktop
[Linux/Flatpak] Attaching files via Drag-n-Drop or copy/paste clipboard does not work on some environments
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 525
- Forks
- 85
- Avg merge
- 8h 5m
- Merged PRs (30d)
- 35
Description
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Problem
A file can be attached by drag-n-drop or copy/paste but it cannot be sent with an infinite load or an error.
Workaround from the user side
On your own risk you can provide read only access to the entire file system for the app via:
flatpak override --user --filesystem=host:ro com.nextcloud.talk
or only to the home and /tmp (for some screenshot tools) directories:
flatpak override --user --filesystem=home:ro --filesystem=/tmp:ro com.nextcloud.talk
It can be reverted with:
flatpak override --reset com.nextcloud.talk
Details
Flatpak uses portal org.freedesktop.portal.FileTransfer for file transfer from the host.
It is supported by Electron since v44 (Chromium 151). However, it requires support from both sides - the application and the host.
Currently it works on all GTK 4 file managers, for example, on GNOME's Nautilus, and on others like KDE's Dolphin.
Example distribution | Desktop Environment | Default FM | Status
-- | -- | -- | -- | --
Ubuntu 26 | GNOME 49 | Nautilus | ✅ Confirmed
Debian 13 | GNOME 48 | Nautilus | 🚧 Untested
Fedora 44 | KDE Plasma | Dolphin | 🚧 Untested
openSuse | KDE Plasma | Dolphin | 🚧 Untested
Linux Mint | Cinnamon | Nemo | ❌ Unsupported
Linux Mint | Xfce | Thunar | ❌ Unsupported
Proper workaround
Providing full filesystem access is against the sandboxing idea and cannot be shipped as a solution.
On the app side, file transfer support should be detected. If it is not available, the app should show a warning to the user on paste/drag with a suggestion to use the attach menu.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are named. Start by locating the attachment handling for drag-and-drop and clipboard paste, then inspect how Electron and the Flatpak FileTransfer portal are detected on supported and unsupported environments. Done means unsupported transfers produce a warning suggesting the attach menu, while supported transfers continue to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, javascript
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100