Bug 455545 - Color picker cannot copy to clipboard on Wayland
Summary: Color picker cannot copy to clipboard on Wayland
Status: RESOLVED FIXED
Alias: None
Product: kdeplasma-addons
Classification: Plasma
Component: Color Picker (show other bugs)
Version: 5.25.0
Platform: openSUSE Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2022-06-18 11:26 UTC by zerocostabstraction
Modified: 2024-08-21 15:41 UTC (History)
10 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zerocostabstraction 2022-06-18 11:26:11 UTC
SUMMARY

With "Automatically copy color to clipboard" setting enabled, nothing gets copied to the clipboard on Wayland (haven't tested Xorg, I assume it works there). Doesn't work through the "Copy to clipboard" button while in the widget as well. Works from the "Open Color Dialog" view, when copying from the textbox. Noted that the current clipboard also gets overriden by the empty clipboard set by the colorpicker.


STEPS TO REPRODUCE
1. Pick color using the color picker widget
2. 
3. 

OBSERVED RESULT

Nothing gets copied into the clipboard

EXPECTED RESULT

Color in the correct format, in my clipboard, ready to paste. 
SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Operating System: openSUSE Tumbleweed 20220613
KDE Plasma Version: 5.25.0
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.2
Kernel Version: 5.18.2-1-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 1800X Eight-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: AMD Radeon RX Vega
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B450 AORUS ELITE
Comment 1 computerworm 2022-06-19 02:44:54 UTC
The same thing happens to me.

System specs: 
Operating System: Artix Linux
KDE Plasma Version: 5.25.0
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.4
Kernel Version: 5.17.15-hardened1-1-hardened (64-bit)
Graphics Platform: Wayland
Comment 2 Nate Graham 2022-06-21 17:37:29 UTC
Cannot reproduce; all of these things work for me on Wayland.
Comment 3 zerocostabstraction 2022-06-21 18:31:02 UTC
(In reply to Nate Graham from comment #2)
> Cannot reproduce; all of these things work for me on Wayland.

Maybe relevant to say that i've followed the instructions on here: https://community.kde.org/Plasma/Debugging

Running the application 

run org.kde.plasma.plasmoidname

inside gdb plasmawindowed

The Widget window that showed up worked like a charm. Any logs I can attach that might help tracking down the issue?
Comment 4 zerocostabstraction 2022-06-21 18:34:53 UTC
(In reply to zerocostabstraction from comment #3)
> (In reply to Nate Graham from comment #2)
> > Cannot reproduce; all of these things work for me on Wayland.
> 
> Maybe relevant to say that i've followed the instructions on here:
> https://community.kde.org/Plasma/Debugging
> 
> Running the application 
> 
> run org.kde.plasma.plasmoidname
> 
> inside gdb plasmawindowed
> 
> The Widget window that showed up worked like a charm. Any logs I can attach
> that might help tracking down the issue?

Sorry to be doing this, still not used to not having an edit button. If the widget is on the desktop, it also works. On the panel, it behaves as described above.
Comment 5 Akseli Lahtinen 2022-07-07 16:47:04 UTC
I can duplicate this issue, however:

- The color picker widget works just fine.
- The KColorChooser doesn't work.

Operating System: Fedora Linux 36
KDE Plasma Version: 5.25.2
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.3
Kernel Version: 5.18.9-200.fc36.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15,4 GiB of RAM
Graphics Processor: AMD DIMGREY_CAVEFISH
Comment 6 David Edmundson 2022-07-08 08:11:17 UTC
>On the panel, it behaves as described above.

Well identified.
The panel doesn't have keyboard focus, if the panel doesn't have keyboard focus wayland policies prevent it from modifying the clipboard.

A fast workaround would be to make the colour picker applet use SystemClipboard
Comment 7 Nate Graham 2022-08-01 19:51:13 UTC
For me on Wayland with current git master, the Color Picker widget is able to copy the color to the clipboard when it's on my Panel, or on my Desktop.
Comment 8 Pavel Dobiáš 2024-08-14 09:17:30 UTC
I still experience this on KDE Plasma 6.1.4 on Fedora Linux 40 and it's quite annoying. Is it going to ever get fixed after 2 years?
Comment 9 Nate Graham 2024-08-14 22:16:22 UTC
Is the widget on your panel, Pavel? I remain unable to reproduce the issue with the widget on a panel.
Comment 10 Pavel Dobiáš 2024-08-14 23:02:19 UTC
(In reply to Nate Graham from comment #9)
> Is the widget on your panel, Pavel? I remain unable to reproduce the issue
> with the widget on a panel.

I mainly have the widget on the desktop, don't really want it on my panel, but tried it with panel as well and had no success in both cases.
Comment 11 Nate Graham 2024-08-21 15:41:15 UTC
With current git master, this is working as expected for me on both the panel and desktop. Let's call it fixed in Plasma 6.2.

If anyone can still reproduce the issue after upgrading the Plasma 6.2 in two months, we can re-open this and investigate. I suspect the issuer will be traced to some Klipper setting, custom script, or 3rd-party thing. So for those still experiencing it, it would be useful also to try again in a new clean user account with no customization, other than adding a Color Picker widget to the desktop or panel.