Tudmotu / gnome-shell-extension-clipboard-indicator

The most popular clipboard manager for GNOME, with over 1M downloads
https://extensions.gnome.org/extension/779/clipboard-indicator/
MIT License
893 stars 170 forks source link

Missing `charset=utf-8` in mimetype in registry.txt #417

Open alesrosina opened 1 year ago

alesrosina commented 1 year ago

After upgrading to Gnome 45, all new texts are added to registry.txt as follows:

  {
    "favorite": false,
    "mimetype": "text/plain",
    "contents": "some text that should be pastable"
  },
  {
    "favorite": false,
    "mimetype": "text/plain",
    "contents": "some more examples"
  }

Note missing "mimetype": "text/plain;charset=utf-8",. With this setting, when sthing in text is selected, you cannot paste anything (when doing paste, it seems like it's empty).

If I select older record or add charset=utf-8 manually to registry.txt, save it and then reselect (click on item in extension), it will be able to paste.

I should add, that this mostly happens when copying from Visual Studio Code and Firefox.


System Info: Ubuntu 23.10, Gnome 45, vscode 1.84.0, Firefox 119.0

Tudmotu commented 1 year ago

Thank you for reporting this. Yes, since GNOME 45 mimetypes have been added and it has been causing issues.

I am trying to figure out a way to fix this.

avpaderno commented 11 months ago

I edited the registry.txt file and changed "mimetype": "text/plain" to "mimetype": "text/plain;charset=utf-8". After I switched it off, and back on, Clipboard Indicator started to copy again the text.

megaconfidence commented 10 months ago

Thanks for sharing this @kiamlaluno, I was almost going crazy

Any progress on a permanent fix @Tudmotu?

Tudmotu commented 10 months ago

Yeah, but slow progress since I've been preoccupied with other stuff.

Hopefully I can find time to work on it next week and release a new version.

megaconfidence commented 10 months ago

Awesome bro, thank you. I always appreciate your quick fixes on issues like these!

Tudmotu commented 10 months ago

Short update, seems like this is an issue with GNOME. More details in this comment: https://github.com/Tudmotu/gnome-shell-extension-clipboard-indicator/issues/425#issuecomment-1892821774

avpaderno commented 8 months ago

I wish my previous comment said where the registry.txt file is. I am trying to find it, but I do not remember where it is.

Tudmotu commented 7 months ago

@kiamlaluno it should be in ~/.cache/clipboard-indicator@tudmotu.com

avpaderno commented 7 months ago

@Tudmotu Thank you.