Bug 434262

Summary: Klipper under wayland remain open with an invisible entry that can not be removed
Product: [Unmaintained] klipper Reporter: Dave Morley <davmor2>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: justin.zobel, nate, sudhir, till2.schaefer
Priority: NOR Keywords: wayland-only
Version First Reported In: 5.21.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot of invisible entry in klipper

Description Dave Morley 2021-03-10 23:30:17 UTC
Created attachment 136573 [details]
screenshot of invisible entry in klipper

SUMMARY
On KDE Neon on a wayland session there is an invisible entry in klipper that keeps it open on the taskbar.  Trying to delete this entry is impossible.

STEPS TO REPRODUCE
1. run a wayland session on KDE Neon
2. look a the empty klipper
3. try to remove the invisible entry to clear it from taskbar 

OBSERVED RESULT
you cant remove the entry, or clear the klipper from the task bar

EXPECTED RESULT
I expect to be able to clear the clipboard and have it hidden like I can in a normal X session

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: kde neon 5.21
(available in About System)
KDE Plasma Version: 5.21.2
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Comment 1 Justin Zobel 2021-03-17 22:21:31 UTC
I've just checked on my KDE Neon User Edition with 5.21.2 but I can't replicate this. I have an empty clipboard and it shows. Are you able to test with a new user account and see if the issue is there?
Comment 2 Till Schäfer 2021-03-19 10:24:51 UTC
possibly related to Bug 434419
Comment 3 Dave Morley 2021-03-19 14:15:57 UTC
I'll try it again at the weekend with a different user and with the docker image, I'll read up on the other issue too.  Bit pressed for time at the minute though.  But thanks for the replies.
Comment 4 Nate Graham 2021-03-19 19:40:12 UTC
Can confirm. Clearing all entries on wayland produces a single empty entry rather than actually emptying the clipboard.

However I believe that this may be intentional, as Klipper has a setting called "Prevent empty clipboard" and it is on by default. If I turn it off, then no empty entry is created when I clear the whole clipboard. So this may be a case of the feature actually working properly on Wayland, but that feature's implementation is a bit odd and maybe it shouldn't be on by default--but nobody ever noticed or cared before because it was broken on X11!

Can you confirm the above?
Comment 5 Nate Graham 2021-03-19 19:40:21 UTC
*** Bug 434419 has been marked as a duplicate of this bug. ***
Comment 6 Sudhir Khanger 2021-03-20 02:31:25 UTC
Nate, but when the clipboard is not empty then introducing empty entry doesn't make sense. I have disabled prevent empty clipboard option and I still get empty entry sitting on the top most of the time.

$ lspci | grep -ie 3d -e vga
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
01:00.0 3D controller: NVIDIA Corporation GM107GLM [Quadro M1000M] (rev a2)

I am on not on wayland as far as I can tell. I am using standard Fedora 33.
Comment 7 Nate Graham 2021-03-20 02:45:23 UTC
If you aren't on Wayland then this bug doesn't apply to you, and you should file a new one.
Comment 8 Sudhir Khanger 2021-03-20 03:58:06 UTC
I did file one but Wayland was forced into it and was marked as duplicate. Anyways I have removed Wayland tag and marker as not duplicate.

https://bugs.kde.org/show_bug.cgi?id=434419
Comment 9 Dave Morley 2021-03-31 14:16:58 UTC
This issue seems to of been resolved by the latest set of updates.  I can nolonger reproduce the issue please fell free to close this issue.