Skip to content
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

Animated gifs paste incorrectly in certain apps #1961

Open
1 task
MrDrMcCoy opened this issue May 4, 2024 · 1 comment
Open
1 task

Animated gifs paste incorrectly in certain apps #1961

MrDrMcCoy opened this issue May 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@MrDrMcCoy
Copy link

Description

When triggering an image match of an animated gif, the receiving application will sometimes get something else instead. This appears to depend on the app that receives it.

Apps with successful gif paste:

  • Slack (Flatpak)
  • Google Docs (Firefox native, Vivaldi Flatpak)

Apps that just get a static png:

  • Discord (standalone Flatpak, Vivaldi Flatpak)
  • Signal (Flatpak)

Apps that get whatever was last in the clipboard:

  • Thunderbird (native)

Steps to reproduce

  1. Create image match
  2. Type trigger in text area of designated app

Expected behavior

All apps should get the full animated gif if they support pasting gifs.

Screenshots

No response

Logs

This is logged on every expansion, whether successful or not:

21:46:13 [worker(221777)] [ERROR] modulo reported an error: 
(espanso:235504): Gdk-WARNING **: 21:46:10.779: Failed to read portal settings: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Unable to open /proc/235504/root

Your environment

  • Public source code: yes?
  • Environment name and version (e.g., Rust 1.59.0): KDE 6.0.4 (Wayland)
  • Operating system and version (e.g., Ubuntu 20.04.2 LTS): Ubuntu 22.04
  • Espanso version (e.g., 2.1.4-beta): espanso 2.2.1 (Wayland)

Self-service

  • I'd be willing to fix this bug myself.
@MrDrMcCoy MrDrMcCoy added the bug Something isn't working label May 4, 2024
@smeech
Copy link
Collaborator

smeech commented May 4, 2024

Yes, it's very variable:

Success:

  • Google Docs - Firefox
  • Thunderbird

Fail despite manually pasted image working:

  • Google Docs - Brave
  • Discord (Flatpak)

Not sure how much is due to Espanso, and how much is due to the receiving programs.

I've not experimented with the alternative image methods - you might like to have a look at https://pastebin.com/MkCYM5Jq.

Linux Mint 21.2 x86_64 Xfce 4.18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants