mirukana / mirage

A fancy, customizable, keyboard-operable Qt/QML & Python Matrix chat client for encrypted and decentralized communication.
GNU Lesser General Public License v3.0
412 stars 40 forks source link

Can't send images by pasting from clipboard in Arch Linux on Sway #699 #229

Open ghost opened 3 years ago

ghost commented 3 years ago

I use Arch Linux and Sway on hardware that fully supports it. I use grim, slurp and wl-copy to take screenshot, save it in my device as well as copy to my clipboard with the following command bound in sway configureation file:

#screenshots
bindsym Shift+Print exec grim -c -g "$(slurp)" -t png - | tee /home/$USER/pictures/ss/$(date +"%d-%b-%Y--%H:%M:%S").png | wl-copy
bindsym Print exec grim -c -t png - | tee /home/$USER/pictures/ss/$(date +"%d-%b-%Y--%H:%M:%S").png | wl-copy

In every other program I can just paste clipboard contents and send stuff except for mirage.

Here is a sample of what happens. This just keeps rotating on and on. The program completely freezes if I forcibly click on send-

image

I have run from terminal also and gotten these outputs

error1 error2

However, If I try to send image by clicking from the UI, it works fine. Even PNG. From this button I mean -

image

I love this project and how fast and beautiful it is. Kudos to the creators.

TL;DR: Can't paste clipboard images into mirage running on arch linux on sway

ghost commented 3 years ago

BTW, I get same results regardless of whether I've installed matrix-mirage from the AUR or from the Chaotic AUR

MRAAGH commented 2 years ago

Possibly related to #195