This bug appears to have been introduced after the race to fix vulnerable Tumbleweed versions following the XZ Utils backdoor fiasco. I was able to configure openSUSE to clear the clipboard before by setting a keyboard shortcut. Now the same configuration will not work. It appears to save, but the keyboard shortcut does not work. This bug has been repeated several times on several different computers (both notebooks and desktops) over a period of months. The OS is Tumbleweed, the version is the latest up-to-date version, and the desktop environment is KDE.
Steps to Reproduce:
Copy something to the clipboard.
Go to the bottom-right corner (on a standard KDE installed Tumbleweed system)
and right-click the clipboard icon to open up the menu.
Select ‘Configure Clipboard’ from the menu.
Select ‘Shortcuts’ on the left-hand side menu of the ‘Configure’ window.
Select the ‘Clear Clipboard History’ option.
Select ‘Custom’. The keyboard shortcut combination I used was ‘alt+c’
Click ‘Apply’ on the bottom-right corner of the ‘Configure’ window.
Click ‘OK’ to exit the window.
One now should be able to hit ‘alt+c’ to clear the clipboard history, but this no longer works after the fixes implemented after the XZ Utils incident. As mentioned previously, I have tried this over several months and across very different computers with the same error repeating itself. It used to work perfectly well before the aforementioned incident, and it was a very convenient feature to have. Any suggestions on how to go about fixing this for the future? Thanks!
Out of curiousity, because I generally avoid setting keyboard shortcuts, I had a look at this question earlier. What I found here was that setting the Clear Clipboard History shortcut in the Configuration defaults to setting the shortcut under the “Shortcut” column, and that shortcut only works when the Clipboard window is popped up (the setting is stored in ~/.config/plasmashellrc).
What I did next was click under the “Global” column for Clear Clipboard History before setting the shortcut. Then it turned up in ~/.config/kglobalshortcutsrc and worked on the desktop too.
What amused me was that when Alt+C was undefined, it brought up the Configuration for the System Monitor Sensor widget I have on the desktop. I have no idea why it did that…
I just tried your suggestion and it brings up the ‘library’ window. Thus it appears one cannot change the keyboard shortcuts to anything other than what they currently are set at in the desktop.
In fact, that is why I used the combo ‘alt+c’ originally. It was easy and convenient to use, and it didn’t look like this combination was used by something else, though if it was, I should still be able to change to this shortcut while the old shortcut (if the combo existed for another shortcut before) should just be erased. This is a good default behaviour.
I did as you pointed out and changed the shortcut in the global setting this time … it did work! So thank you! There does still seem to be some odd behaviour with these keyboard shortcut settings that did not exist before, as I had the same configuration window pop-up you had too!