You are not logged in.
i have a problem with Firefox in gnome where click to copy (on websites like GitHub where code sections can be copied with a click) does not work when I'm using Firefox on gnome.
However, this functionality works on chrome, and gnome Web. This feature also works for Firefox on KDE.
What am i missing here?
Last edited by NGStaph (2024-05-17 07:16:57)
Offline
Are you using Wayland?
If yes it might very well be a (firefox or gtk ?) bug as Wayland has a history of problems with copying between windows.
Can you copy text in firefox by selecting?
Offline
I'm on X11 and i can copy paste using both the keyboard and mouse post selection. The only scenario where copy/paste doesn't work is the scnario above i.e. on websites with click to copy code sections.
Offline
Have you figured out how to fix this? For me it is not working in Firefox with i3-wm
Offline
Is "click to copy" the primary selection that typically gets filled when selecting text w/ the mouse or some javascript button on a webpage?
Are all webpages (eg. this one) affected?
Edit: fixed typo, thanks to the heads up from yogiken
Does
(xsel -op; echo; xsel -os; echo; xsel -ob) | less -Fprint the desired selection anywhere?
Last edited by seth (2024-04-02 16:55:36)
Offline
I think Seth had the right answer but there might be a typo in the suggested code. I think this is what was intended:
(xsel -op; echo; xsel -os; echo; xsel -ob) | less -F(Note the '-ob' for the third invocation.)
Here's a similar diagnostic using xclip (this time omitting the secondary selection since it is so rarely used):
echo -n "primary selection: " ; xclip -sel p -o; echo; echo; echo -n "clipboard: "; xclip -sel c -o; echo | less -FThe issue here is that click to copy is actually working but rather than putting the copied text into the primary buffer, it's putting it into the clipboard (equivalent to pressing CTRL-C except that the primary selection is unaffected.) So
xsel -obor
xclip -sel c -oshould contain the text that was copied when you clicked the button in Firefox.
Offline