gnome-shell-extension-clipboard-indicator icon indicating copy to clipboard operation
gnome-shell-extension-clipboard-indicator copied to clipboard

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

Open alesrosina opened this issue 1 year ago • 9 comments

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

alesrosina avatar Nov 07 '23 06:11 alesrosina

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.

Tudmotu avatar Nov 07 '23 09:11 Tudmotu

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.

avpaderno avatar Dec 25 '23 16:12 avpaderno

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

Any progress on a permanent fix @Tudmotu?

megaconfidence avatar Jan 02 '24 07:01 megaconfidence

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.

Tudmotu avatar Jan 04 '24 19:01 Tudmotu

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

megaconfidence avatar Jan 04 '24 19:01 megaconfidence

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

Tudmotu avatar Jan 15 '24 22:01 Tudmotu

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.

avpaderno avatar Mar 24 '24 17:03 avpaderno

@kiamlaluno it should be in ~/.cache/[email protected]

Tudmotu avatar Apr 01 '24 08:04 Tudmotu

@Tudmotu Thank you.

avpaderno avatar Apr 01 '24 15:04 avpaderno