You are not logged in.

#1 2024-09-19 17:40:31

niedxwiedx
Member
Registered: 2021-01-24
Posts: 9

Primary selection stopped working

Seems that primary selection stopped working in the span of last few days. Earlier i was able to select text in one app and paste it into another via middle mouse button. Now this is not the case.
Tried sselp to display selection, nothing gets printed. X11 issue?
The strangest thing is it all happened without even updating the system. I noticed this on both my home & work stations. Does anyone else experience it as well?

I'm running X11 and openbox.

Offline

#2 2024-09-19 20:55:36

seth
Member
Registered: 2012-09-03
Posts: 60,787

Re: Primary selection stopped working

sselp doesn't monitor the selection but prints the current one, it might have been cleared.
The most likely explanations are some scripts involving xsel/xclip etc or some actual clipboard manager (like eg. clipman)

Get https://archlinux.org/packages/extra/x86_64/clipnotify/ and run "clipnotify -s primary", then select some text, clipnotify should™ terminate in response.

Online

#3 2024-09-20 15:29:04

niedxwiedx
Member
Registered: 2021-01-24
Posts: 9

Re: Primary selection stopped working

You are right, clipnotify terminated immediately.
I forgot to mention - i do not recall installing any selection related tools, clipboard managers or adding scripts. Also haven't been experimenting with wayland. My home env is now up to date, and my work env is from May this year. And i'm sure primary selection was working in the meantime.

Offline

#4 2024-09-20 15:33:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: Primary selection stopped working

Does it matter what the source / destination programs are?  Specifically, have you tested in copying from and to two different terminals with no other client windows open?  Are the results of this different between a terminal and a browser?

Last edited by Trilby (2024-09-20 16:07:11)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2024-09-20 16:59:40

niedxwiedx
Member
Registered: 2021-01-24
Posts: 9

Re: Primary selection stopped working

I removed everything from openbox autostart and xinitrc and tested copying between same apps and different apps (both directions, also from the implementation point of view like gtk2, gtk3, qt5, vanilla). Nothing works. I tried urxvt, leafpad, cherrytree, chromium, vlc.

Offline

#6 2024-09-20 17:19:39

niedxwiedx
Member
Registered: 2021-01-24
Posts: 9

Re: Primary selection stopped working

but pasting via shift+insert works...

Offline

#7 2024-09-20 17:30:47

niedxwiedx
Member
Registered: 2021-01-24
Posts: 9

Re: Primary selection stopped working

niedxwiedx wrote:

but pasting via shift+insert works...

scratch that

Offline

#8 2024-09-20 17:43:10

niedxwiedx
Member
Registered: 2021-01-24
Posts: 9

Re: Primary selection stopped working

this is strange and confused me as i noticed that i was able to paste selection via shift+insert, then it stopped working, and now it is working again. I do not know what has changed. Searching for patterns...

Offline

#9 2024-09-20 19:04:34

seth
Member
Registered: 2012-09-03
Posts: 60,787

Re: Primary selection stopped working

shift+ins will typically™ paste the clipboard.

echo clipboard | xsel -ib
echo primary | xsel -ip
echo secondary | xsel -is

But there's obviously something fucking around w/ your selection buffer.

ps fax

Online

Board footer

Powered by FluxBB