eneshecan / whatsapp-for-linux

An unofficial WhatsApp desktop application for Linux.
GNU General Public License v3.0
947 stars 97 forks source link

Unable to Paste Screenshots from Clipboard into WhatsApp for Linux #333

Open teetangh opened 10 months ago

teetangh commented 10 months ago

Issue Title: Unable to Paste Screenshots from Clipboard into WhatsApp for Linux

Issue Description: When using WhatsApp for Linux, there seems to be an inconsistency in the ability to paste screenshots from the clipboard into the message board. Unlike the WhatsApp application for Mac and other devices, where pasting screenshots from the clipboard into the message input area works seamlessly, this functionality appears to be missing or non-functional in the WhatsApp for Linux client.

Expected Behavior: Users should be able to paste screenshots directly from the clipboard into the WhatsApp for Linux message board, similar to the behavior observed in the WhatsApp application for Mac and other devices.

Current Behavior: Attempting to paste a screenshot from the clipboard into the WhatsApp for Linux message board doesn't yield any results. The usual paste option or keyboard shortcut does not trigger the pasting of the screenshot, preventing users from easily sharing images captured on their system with their contacts.

Steps to Reproduce:

Capture a screenshot using any standard method available on the Linux system. Open the WhatsApp for Linux application. Navigate to a conversation where you want to share the screenshot. Attempt to paste the screenshot from the clipboard into the message input area using the standard paste option (right-click > Paste or Ctrl+V). Additional Information:

This issue seems to be specific to the WhatsApp for Linux client, as pasting screenshots from the clipboard works as expected on other devices, including WhatsApp for Mac. Copying and pasting text appears to work correctly within the WhatsApp for Linux application. Other image formats and regular images saved on the system also cannot be pasted into the WhatsApp for Linux message board. Environment:

Operating System: Ubuntu WhatsApp for Linux Version: Ubuntu 18.04 LTS Impact: This issue affects the user experience and efficiency of sharing images through WhatsApp for Linux. Users are forced to save screenshots as separate files and then manually attach them, which is an inconvenience compared to the straightforward method of pasting images from the clipboard. This inconsistency hinders the workflow of users who frequently communicate using WhatsApp for Linux clients.

aironsouza commented 10 months ago

I second this. Tested in Fedora 38 (flatpak)

Zaenalabidin57 commented 10 months ago

you can install webkit2gtk-imgpaste to solve this problem, you can read more on #79 , mine worked normally after i install the packages

Martzy303 commented 8 months ago

@Zaenalabidin57 Any idea how it can be installed in Ubuntu/Mint?

facundoo commented 7 months ago

I have same problem in Ubuntu 22.04 - WS LInux 1.6.4

saozer commented 3 months ago

For me I thing that the best way to solve this problème is: 1) save the clipboard content in a /tmp/tmp_image.jpeg 2) create a thumbnail component that displays the /tmp/tmp_image.jpeg file 3) On submit, send the /tmp/tmp_image.jpeg file to the endpoint

Cornul11 commented 3 weeks ago

you can install webkit2gtk-imgpaste to solve this problem, you can read more on #79 , mine worked normally after i install the packages

The issue persists for me even with webkit2gtk-imgpaste installed.

juandevgado commented 5 days ago

you can install webkit2gtk-imgpaste to solve this problem, you can read more on #79 , mine worked normally after i install the packages

The issue persists for me even with webkit2gtk-imgpaste installed.

dependency is now webkit2gtk-4.1 so should install webkit2gtk-4.1-imgpaste instead to make it work