Bug 435614 - Unable to copy text from popup for SMS
Summary: Unable to copy text from popup for SMS
Status: RESOLVED FIXED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-11 13:23 UTC by John P
Modified: 2025-03-26 16:17 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John P 2021-04-11 13:23:12 UTC
SUMMARY
When SMS is received with SSO information, a Copy button appears in Popup with text to be copied.  Clicking the button does not copy text to keyboard.

STEPS TO REPRODUCE
1. Receive text with SSO information which generates Copy "Text" option.
2. Click copy text button.
3. Check clipboard.

OBSERVED RESULT
No text is copied.

EXPECTED RESULT
Text is copied to clipboard.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
If I open SMS in KDE Connect SMS window and select text, I am able to copy it and see it in clipboard.  No other observed issues with copy paste in other applications.
Comment 1 John P 2021-04-11 13:45:10 UTC
Popup is generated by Brave browser, not KDEConnect.  I'm not sure if the issue is with the notification from Google's SMS site, Brave, or in Plasma.
Comment 2 Nicolas Fella 2021-04-11 15:09:49 UTC
What I assume is happening is this: The notification on the phone has a copy action and KDE Connect forwards that. When you click copy on the desktop the action is triggered and the text is copied, but on the phone, not the desktop.
Comment 3 Bug Janitor Service 2021-04-26 04:33:42 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 4 Bug Janitor Service 2021-05-11 04:33:39 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now 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

Thank you for helping us make KDE software even better for everyone!
Comment 5 Kristen McWilliam 2024-10-17 17:51:54 UTC
Git commit caaac80ca5cde5d94cdf3617a4fba4b4a19f38b2 by Kristen McWilliam.
Committed on 17/10/2024 at 17:51.
Pushed by merritt into branch 'fix_copy_auth_code'.

fix: copy auth code to desktop clipboard

SMS auth codes generate a notification that has a "Copy $code" button
(eg. "Copy 123456"), but the button doesn't actually copy the code as
expected. This patch fixes that.
Related: bug 451539

M  +2    -1    plugins/notifications/CMakeLists.txt
M  +30   -0    plugins/notifications/notificationsplugin.cpp
M  +8    -0    plugins/notifications/notificationsplugin.h
M  +3    -0    tests/CMakeLists.txt
A  +93   -0    tests/notificationstest.cpp     [License: GPL(3+eV) GPL(v3.0) GPL(v2.0)]

https://invent.kde.org/network/kdeconnect-kde/-/commit/caaac80ca5cde5d94cdf3617a4fba4b4a19f38b2
Comment 6 Kristen McWilliam 2025-03-26 16:17:05 UTC
Git commit 92e61c07c639c3a2b7e6e87478777142bd97dafb by Kristen McWilliam.
Committed on 26/03/2025 at 16:07.
Pushed by merritt into branch 'master'.

fix: copy auth code to desktop clipboard

SMS auth codes generate a notification that has a "Copy $code" button
(eg. "Copy 123456"), but the button doesn't actually copy the code as
expected. This patch fixes that.
Related: bug 451539

M  +2    -1    plugins/notifications/CMakeLists.txt
M  +30   -0    plugins/notifications/notificationsplugin.cpp
M  +8    -0    plugins/notifications/notificationsplugin.h
M  +3    -0    tests/CMakeLists.txt
A  +93   -0    tests/notificationstest.cpp     [License: GPL(3+eV) GPL(v3.0) GPL(v2.0)]

https://invent.kde.org/network/kdeconnect-kde/-/commit/92e61c07c639c3a2b7e6e87478777142bd97dafb