Bug 484774

Summary: Removing last (1 of 1 entries) from the Clipboard is impossible
Product: [Plasma] plasmashell Reporter: Cherkah <cherkaba>
Component: Clipboard widget & pop-upAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: cherkaba, fanzhuyifan, nate
Priority: NOR    
Version First Reported In: 6.0.3   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: clipboard apllet
conf1
conf2
conf3

Description Cherkah 2024-03-30 18:16:41 UTC
Created attachment 167958 [details]
clipboard apllet

SUMMARY
on wayland it is IMPOSSIBLE to remove the last entry in the clipboar applet.
or at least I should say that there is always one line left after clearing the history
 
STEPS TO REPRODUCE
1. open a wayland session
2. copy several times differents entries
3. clear the historic of your clipboard
4. observe a line that remains

OBSERVED RESULT
one line always keeps in the clipboard historic

EXPECTED RESULT
clear the clipboard = an empty clipboard applet

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.8.2-zen2-1-zen (64-bit)
Graphics Platform: Wayland


ADDITIONAL INFORMATION
as i said it occures only with wayland, no matter that wl-clipboard pkg is installed of not
Comment 1 fanzhuyifan 2024-03-30 19:33:14 UTC
Could you share a screenshot if you go to configure clipboard - general? In particular, do you have Keep selection and clipboard the same selected?

FWIW can't reproduce on git master, wayland, arch linux.
Comment 2 Cherkah 2024-03-30 19:49:50 UTC
> ... do you have Keep selection and clipboard the same selected?

yes i do. And you're right: untick it (Keep selection and clipboard the same selected) give me the possibility to really clear my clipboard history (100% empty) !!!!!

But how can it be? either i lose a really important clipboard feature or i keep on entry which can be an password security issue (i use keepassxc/kwallet ....) !!
Comment 3 fanzhuyifan 2024-03-30 19:53:15 UTC
(In reply to Cherkah from comment #2)
> > ... do you have Keep selection and clipboard the same selected?
> 
> yes i do. And you're right: untick it (Keep selection and clipboard the same
> selected) give me the possibility to really clear my clipboard history (100%
> empty) !!!!!
> 
> But how can it be? either i lose a really important clipboard feature or i
> keep on entry which can be an password security issue (i use
> keepassxc/kwallet ....) !!

Please provide your complete settings so we could investigate further. I still can't reproduce when Keep selection and clipboard the same is selected. If nothing is selected, clearing history correctly clears everything.
Comment 4 Cherkah 2024-03-30 20:09:56 UTC
ok what kind of  info settings do you need. Tell me how can i provide them to you (dr.konqui, inxi, neofetch...)
Comment 5 fanzhuyifan 2024-03-30 22:17:49 UTC
A screenshot of the settings in configure clipboard - general.
Comment 6 Cherkah 2024-03-30 22:38:15 UTC
Created attachment 167963 [details]
conf1
Comment 7 Cherkah 2024-03-30 22:39:14 UTC
Created attachment 167964 [details]
conf2
Comment 8 Cherkah 2024-03-30 22:39:54 UTC
Created attachment 167965 [details]
conf3
Comment 9 Cherkah 2024-03-30 23:05:41 UTC
the clipboard is completely emptied only if I select/deselect an option in settings > general
Comment 10 fanzhuyifan 2024-03-31 05:08:37 UTC
Humm I still can't reproduce on git master even when I replicate all the configurations.

Operating System: Arch Linux 
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.8.2-arch2-1 (64-bit)
Graphics Platform: Wayland
Processors: 20 × 13th Gen Intel® Core™ i9-13900H
Memory: 15.2 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: ROG Zephyrus G16 GU603VV_GU603VV
System Version: 1.0
Comment 11 Cherkah 2024-03-31 14:37:21 UTC
if that can help you (clipboard log) :
```
file:///usr/share/plasma/plasmoids/org.kde.plasma.clipboard/contents/ui/Menu.qml:100:13: QML Binding: Binding loop detected for property "when"
file:///usr/share/plasma/plasmoids/org.kde.plasma.clipboard/contents/ui/ClipboardPage.qml:79:26: QML PlasmoidHeading: Binding loop detected for property "leftInset" 


do you think that zsh (shell interactive) + some modules (copypath + copyfile) can disrupt the behavior of the clipboard?

i have not  installed homyzsh
Shell: bash 5.2.26 
           zsh 5.9
Comment 12 Cherkah 2024-04-06 08:22:41 UTC
ok i gotover this issue via new clean installation

regards
Comment 13 Cherkah 2024-07-01 15:02:25 UTC
the issue occurs again!!!

here is what I have in my log:

```
from disable-paste:
 Oh, oh, it's an error! possibly I die!
*** err
/dev/tty1: Permission denied
```
Comment 14 Nate Graham 2024-07-30 17:21:24 UTC
That seems like something else.

Not sure there's anything actionable here if no one can reproduce it, sorry.