Bug 498864 - Trying to clear clipboard history fails
Summary: Trying to clear clipboard history fails
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard widget & pop-up (other bugs)
Version First Reported In: 6.2.90
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2025-01-18 19:01 UTC by thecookie94
Modified: 2025-01-23 15:19 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.3.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description thecookie94 2025-01-18 19:01:01 UTC
SUMMARY

It is impossible to clear the clipboard, was fully functional on 6.2.x, broken on the 6.3 beta (6.2.90). Trying to clear it logs the following to the journal:

Jan 18 19:45:21 HOSTNAME plasmashell[1589]: qt.sql.qsqlquery: QSqlQuery::exec: database not open
Jan 18 19:45:21 HOSTNAME plasmashell[1589]: org.kde.klipper: A transaction didn't start: "Driver not loaded Driver not loaded"



STEPS TO REPRODUCE
1. copy something to the clipboard
2. try to clear the clipboard
3. clipboard stays filled

OBSERVED RESULT

Clipboard doesn't clear when one invokes the clear clipboard history action

EXPECTED RESULT

Clipboard clears when one invokes the clear clipboard history option

Clipboard 
SOFTWARE/OS VERSIONS
Linux Version: u2d ArchLinux running kernel 6.12.9-arch1-1
KDE Plasma Version: 6.2.90
KDE Frameworks Version: 6.10.0
Qt Version: qt6.9.0beta1-1

ADDITIONAL INFORMATION

Another interesting thing to add is that clipboard history size is set to 1 as that is all I need, but yes since the clear invoke doesn't work it auto-overriding last copy with current copy doesn't work either which means that the history actually does get really really long on a long desktop session without being able to do anything about it.
Comment 1 Nate Graham 2025-01-21 20:15:17 UTC
Cannot reproduce with current git master and default settings?

Are you using any non-default clipboard settings?
Comment 2 thecookie94 2025-01-23 08:00:15 UTC
Did some more digging, and yeah it was fixed in commit
https://invent.kde.org/plasma/plasma-workspace/-/commit/739d17b0fbbc50fea907c033d251906a611d237f

Keeping "save clipboard history" on for now (as that does indeed fix the issue) as the 6.2.90 beta tarballs that arch kde-unstable builds from don't contain that commit yet, and will revert that configuration change of mine once 6.3 is actually out
Comment 3 Nate Graham 2025-01-23 15:19:21 UTC
Fantastic! Looks like this change is actually only in 6.4 (AKA git master right now), which is why I have it and you don't. I'll see if it can be backported.
Comment 4 Nate Graham 2025-01-23 15:19:59 UTC
I was wrong, it was backported in https://invent.kde.org/plasma/plasma-workspace/-/commit/357aa9cb1e309bd21aa405de5d1dd720a667821d