Tangram icon indicating copy to clipboard operation
Tangram copied to clipboard

Paste Images

Open andralves717 opened this issue 4 years ago • 5 comments

When I try to paste images (with Ctrl+V or Right Click + Paste) anything happens. I tested in a normal browser (Firefox and Chromium)

WebApps Tested Whatsapp, Telegram, Messenger, Slack

Tangram version 1.3.1

Linux distribution Ubuntu 20.04

Flatpak version Flatpak 1.6.5

Desktop environment GNOME Shell 3.36.4 X11

andralves717 avatar Dec 28 '20 23:12 andralves717

It appears some cases works - others don't.

Can you please share

  1. How do you copy the image
  2. Where are you trying to paste them?

Related https://bugs.webkit.org/show_bug.cgi?id=218519

sonnyp avatar Jan 14 '21 08:01 sonnyp

WebkitGTK supports pasting files when it's a file path (for example CTRL+C in Nautilus or Image Viewer) but does not support pasting file data (for example copying a selection of an image in Gimp) see this issue https://bugs.webkit.org/show_bug.cgi?id=218519

But even when the selection is a file path - pasting in Tangram does not work because of the sandbox.

For now you can work around the issue by giving Tangram filesystem permissions, use Flatseal or the flatpak CLI, for example

flatpak --user override re.sonny.Tangram --filesystem=home

In the future file system permissions won't be required, support for transparent file forwarding is being worked on - I will have a look, but it might take a while

References:

  • https://github.com/flatpak/xdg-desktop-portal/issues/99
  • https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/418

sonnyp avatar Jan 14 '21 09:01 sonnyp

Under Flatpak - looks like a port to GTK 4 is not enough - see also https://bugs.webkit.org/show_bug.cgi?id=212079

sonnyp avatar Jan 22 '21 08:01 sonnyp

I gave permisions to FS but steel cannot paste screens. image

p5t5r avatar Oct 16 '21 10:10 p5t5r