Bug 494766 - Klipper always copies selection, regardless of it's configuration
Summary: Klipper always copies selection, regardless of it's configuration
Status: RESOLVED NOT A BUG
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard widget & pop-up (show other bugs)
Version: 6.2.2
Platform: Arch Linux Linux
: NOR major
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-14 19:19 UTC by mdcclxv
Modified: 2024-11-01 17:24 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mdcclxv 2024-10-14 19:19:14 UTC
SUMMARY
Klipper will include in history anything selected, regardless of what's configured for General -> (Non-)Text Selection


STEPS TO REPRODUCE
1. Go to Kilpper's General Settings and configure Text Selection as "Only when explicitly copied"
2. Select some text in an editor.
3. Go somewhere else and hit Paste

OBSERVED RESULT
The text  that was just selected is being pasted even though the setting forbids it.

EXPECTED RESULT
The selected text should be ignored by clipboard operations.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 6.2
KDE Frameworks Version: 
Qt Version:
Comment 1 s.cimerman 2024-10-15 13:01:19 UTC
Can confirm - same here. Today I ran three updates and got new KDE 6.2.0. The  configure clipboard has set: Text selection: Only when explicitly copied - and it copies everything. This is incredibly annoying for us who don't like to use auto-copy.
Comment 2 bjoel2 2024-10-17 20:46:49 UTC
Can confirm. Plasma 6.2.0
Comment 3 Alexander Bergmann 2024-11-01 09:20:50 UTC
I am also experiencing the problem under Arch Linux with Plasma 6.2.2, Frameworks 6.7.0 and Qt 6.8.0. A temporary workaround seems to be to temporarily disable the synchronization between selection and clipboard.
Comment 4 Nate Graham 2024-11-01 17:10:30 UTC
So you checked the checkbox for "Keep the selection and clipboard the same" and then the radio button for "Only when explicitly copied"?

If so, then this is actually working as expected: you selected something, so it went on the clipboard (per the checkbox being checked) but did *not* get saved in the history (due to "always save in history" not being checked).

Or are you saying that it *does* appear in the history popup?

If not, then all you have to do is uncheck that checkbox, and you should have the UX you want.
Comment 5 mdcclxv 2024-11-01 17:24:10 UTC
Ouch!!

My bad, that "Keep selection ..." checkbox definitely wasn't there before reporting the issue. Most probably came with the last Plasma update and I didn't notice it.

Unchecking it makes Klipper working as expected. Apologies for the false alarm and thanks for answering.