Bug 488149 - Doesn't always paste the latest copy
Summary: Doesn't always paste the latest copy
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard widget & pop-up (show other bugs)
Version: 5.27.11
Platform: Debian unstable Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-07 06:58 UTC by Marcos Dione
Modified: 2024-07-31 16:23 UTC (History)
1 user (show)

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


Attachments
clipboard items menu with a checkbox by the currently selected item (10.31 KB, image/png)
2024-06-26 21:36 UTC, Marcos Dione
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcos Dione 2024-06-07 06:58:14 UTC
SUMMARY
For a few months now the clipboard applet is misbehaving. I'm running KDE5 (I know it's not the latest) on wayland (I have the impression that those 'few months' are related to my switch to wayland), and I enabled "keep the selection and clipboard and same" (this is how I've been using this for _ages_ now, most probably since KDE3.)

STEPS TO REPRODUCE
1. Select some text with the mouse. This should copy the text to the selection and, by the setting, to the clipboard.
2. Quickly (it might be time related) paste with the keyboard, actually pasting the clipboard, not the selection.

OBSERVED RESULT
3. The wrong (usually the previous to last) text is pasted
4. If I invoke the clipboard items, no item is selected (I have the impression this is part of the bug).

EXPECTED RESULT
5. The last item in the item list is selected and pasted.

ADDITIONAL INFORMATION
mdione@ioniq:~$ dpkg -l | grep wayland
ii  kwayland-data                                            4:5.115.0-2                                 all          Qt library wrapper for Wayland libraries - data files
ii  kwayland-integration:amd64                               5.27.11-1+b1                                amd64        kwayland runtime integration plugins
ii  kwin-wayland                                             4:5.27.11-1+b1                              amd64        KDE window manager, wayland version, PREVIEW release
ii  libkf5waylandclient5:amd64                               4:5.115.0-2+b1                              amd64        Qt library wrapper for Wayland libraries
ii  libqt5waylandclient5:amd64                               5.15.13-2                                   amd64        QtWayland client library
ii  libqt5waylandcompositor5:amd64                           5.15.13-2                                   amd64        QtWayland compositor library
ii  libwayland-client++1:amd64                               1.0.0-6                                     amd64        wayland compositor infrastructure - client library C++ bindings
ii  libwayland-client0:amd64                                 1.22.0-2.1+b1                               amd64        wayland compositor infrastructure - client library
ii  libwayland-server0:amd64                                 1.22.0-2.1+b1                               amd64        wayland compositor infrastructure - server library
ii  plasma-workspace-wayland                                 4:5.27.11.1-1                               amd64        Plasma Workspace for KF5 - Wayland integration
ii  qtwayland5:amd64                                         5.15.13-2                                   amd64        QtWayland platform plugin
Comment 1 Nate Graham 2024-06-07 15:06:58 UTC
Can you try this again in a new clean user account? If it works there, that would suggest that some customization in your current user account is causing it. Possible the setting to sync the clipboard with the latest selection. In any event, it would be great if you can find the exact  combination of settings that causes the issue. Thanks!
Comment 2 Bug Janitor Service 2024-06-22 03:47:53 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Marcos Dione 2024-06-22 11:56:14 UTC
I just tried. To start with, the UI is quite different, but that must be related to the system wide changes I made (style,. colors, etc).

Behaviorly, the applet seems to work fine, but as I mentioned, sometimes it feels like it's time related. The only thing I can tell is that, even if pasting with the keyboard works fine, when I invoke the Items Menu, the topmost item IS the text I just C&P'ed, but it's not 'selected' (no checked checkbox at it left). Is this as intended?
Comment 4 Marcos Dione 2024-06-22 11:57:49 UTC
BTW, could you tell me where the config for the applet is? I would like to save a copy before playing with the options.
Comment 5 Nate Graham 2024-06-26 19:48:26 UTC
Checkbox? I don't understand. The default clipboard widget doesn't have checkboxes. Can you attach a screenshot of the thing you're talking about?
Comment 6 Marcos Dione 2024-06-26 21:36:53 UTC
Created attachment 171048 [details]
clipboard items menu with a checkbox by the currently selected item

This is the menu I get when I invoke the Show Items at Mouse Position action. I invoked it twice: once to select the item, and another to show the selected item with its checkbox.
Comment 7 Nate Graham 2024-06-26 22:30:40 UTC
That's some weird styling. Are you using this outside of Plasma, or with a custom QStyle?
Comment 8 Marcos Dione 2024-06-27 06:41:29 UTC
The style is called Fussion, not sure if it's out of the box or I installed; I have definitely not compiled it myself.

Honest question: Isn't just easier if I post the config files?
Comment 9 Bug Janitor Service 2024-07-12 03:47:04 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Nate Graham 2024-07-29 22:52:40 UTC
Sure, send over your ~/.config/klipperrc file.
Comment 11 Marcos Dione 2024-07-30 06:47:20 UTC
mdione@ioniq:~$ cat ~/.config/klipperrc
[General]
IgnoreImages=false
IgnoreSelection=false
SyncClipboards=true
Version=5.27.11
Comment 12 Nate Graham 2024-07-31 16:23:20 UTC
Thanks. With those exact settings I can't reproduce the issue at all on current git master, which will become Plasma 6.2 in a few months. A *huge* number of Wayland clipboard fixes have been merged in the year and a half since Plasma 5.27 came out, so for now let's call this fixed in Plasma 6.2. If you still experience the issue after upgrading to that version, feel free to re-open the bug report, though.

Thanks again!