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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't paste Emoji into Hexchat, all other applications work #88

Closed
flotwig opened this issue Nov 7, 2019 · 16 comments
Closed

Can't paste Emoji into Hexchat, all other applications work #88

flotwig opened this issue Nov 7, 2019 · 16 comments

Comments

@flotwig
Copy link

flotwig commented Nov 7, 2019

After updating GNOME to 3.34.1, I can no longer paste emoji into Hexchat 馃槩, but all other apps work.

I tried changing the type here to PRIMARY, but the paste still didn't work when middle-clicking into Hexchat:

const CLIPBOARD_TYPE = St.ClipboardType.CLIPBOARD;

I also tried to use the Gtk + Gdk APIs to get Clipboard support, but couldn't get that to work. 馃檮

Hexchat is installed as a binary, not a snap or flatpak.

Any ideas for where I can start looking to fix this issue?

Related: #60

@maoschanz
Copy link
Owner

can you paste anything at all in this app, or is it only about emojis?

@flotwig
Copy link
Author

flotwig commented Nov 8, 2019

Oh yes, I suppose I should have mentioned this! Yeah, I can copy from any other app and paste into Hexchat just fine. It's specifically Emoji copied from the emoji-selector-for-gnome that just don't paste, and only with Hexchat, not any other apps that I've noticed. Thanks for getting back so quickly.

@maoschanz
Copy link
Owner

Are you using Xorg or Wayland?

@flotwig
Copy link
Author

flotwig commented Nov 8, 2019

Xorg, unfortunately; Wayland behaves badly with my graphics card + dock.

I am on Pop_OS! 19.10 if that helps.

@maoschanz
Copy link
Owner

maoschanz commented Nov 9, 2019

I can reproduce the issue on Debian Sid, but it's a general GNOME Shell issue (or an Hexchat issue?)

I mean you can't paste things from your clipboard history using the "clipboard indicator" extension too, if you search something in the overview, select the text and do ctrl+c too, etc. it's between Hexchat and GNOME Shell, not my extension

@flotwig
Copy link
Author

flotwig commented Nov 9, 2019

Thank you for reproducing @maoschanz, I will ask in hexchat's repo and I'll post back here if I discover anything.

@flotwig
Copy link
Author

flotwig commented Nov 9, 2019

@maoschanz Can you share your GNOME shell version that you repro'd on?

@maoschanz
Copy link
Owner

3.34.1

@tracker1
Copy link

tracker1 commented Dec 2, 2019

If it helps, I'm able to copy/paste out of gedit into hexchat... but not directly... also Pop_OS! 19.10 here.

@flotwig
Copy link
Author

flotwig commented Dec 3, 2019

Here is the issue I opened on the GNOME GitLab: https://gitlab.gnome.org/GNOME/gnome-shell/issues/1919

@ronjouch
Copy link
Contributor

ronjouch commented Dec 24, 2019

Issue confirmed under GNOME Shell & Mutter 3.34.2 on Xorg under Arch Linux. Additional data points:

  1. It's not just Hexchat. Problem reproduced with my terminal emulator Kitty 0.15.1: if the clipboard was set by a Shell extension, it is un-pastable into Hexchat & Kitty.
  2. The bug is not about emojis per se, it's only about the source being a Shell extension. So, like maoschanz said, other extensions manipulating the clipboard (e.g. Clipboard Indicator) are affected too. Say I put 馃檪 and foo in Clipboard Indicator, then neither succeeds at being pasted into Hexchat / Kitty.
    • ... but if I paste 馃檪 and foo set by Clipboard Indicator / Emoji Selector into a non-broken app (e.g. Sublime Text), then select the emoji / text here and Ctrl+C it, then pasting to Hexchat / Kitty works.

Any idea what's special about Kitty & Hexchat? @flotwig , you said you'd ask Hexchat folks, did you get any feedback from them? Are these apps using a deprecated API, or is the problem in GNOME?

Suggesting a more precise title for this issue and the GitLab issue: Text placed into clipboard by Shell extensions becomes un-pastable into certain apps (Hexchat, Kitty, Eclipse).

@maoschanz
Copy link
Owner

Even weirder: the issue happens with Eclipse... but not eveywhere in Eclipse. Impossible to paste into the main source code editor, but it works in the "find and replace" dialog for example

@ronjouch
Copy link
Contributor

ronjouch commented Jan 6, 2020

Issue still present with Shell + Mutter 3.34.3.

EDIT got feedback from Carlos (Shell dev) on the GNOME GitLab issue, following up there.

@ronjouch
Copy link
Contributor

ronjouch commented Mar 8, 2020

Closing as fixed by https://gitlab.gnome.org/GNOME/mutter/commit/41c6e1375b85f6e4513d8029e536d2c9494d9794 in 3.34.4, see https://gitlab.gnome.org/GNOME/gnome-shell/issues/1919#note_701075

@ronjouch
Copy link
Contributor

ronjouch commented Mar 8, 2020

Oops, that wasnt my bug, so I cannot close it. @flotwig @maoschanz please close 馃檪.

@aasutossh
Copy link

Not pastable on https://github.com/alacritty/alacritty too.
While gnome-terminal works.
alacritty says : bracketed-paste-magic:zle:47: not enough arguments for -U

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants