Bug 457162

Summary: Ctrl+Alt+R and "Invoke action" button don't show .desktop actions for URLs longer than 200 characters
Product: [Plasma] plasmashell Reporter: nxqrsa
Component: Clipboard widget & pop-upAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: minor CC: kdedev
Priority: NOR    
Version First Reported In: 5.24.4   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description nxqrsa 2022-07-26 14:05:30 UTC
SUMMARY
This is related to commit "Fix Klipper Actions content truncation" (https://invent.kde.org/plasma/plasma-workspace/-/commit/beb34e3d9781c7728260d486a835c52be21a6d83).
When using Ctrl+Alt+R or the "Invoke action" button on a URL, Klipper suggests multiple .desktop files associated with the URL currently in the clipboard, for example browsers for https:// URLs, and video players for a URL like file:///home/user/video.mp4. Unfortunately, this nifty feature doesn't work for URLs longer than 200 characters. Note that doing Ctrl+C in Dolphin on a file and copying manually a file:// URL in the clipboard are different, as the .desktop files will show up for a file whose URL is longer than 200 characters and that has been copied with Dolphin.

STEPS TO REPRODUCE
1. touch /tmp/$(python3 -c 'print("a"*187)') then copy "file:///tmp/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" to your clipboard (not with Dolphin) and press Ctrl+Alt+R see that it works, the Kate .desktop shows up to open the empty file in Kate
2. touch /tmp/$(python3 -c 'print("a"*188)') then copy "file:///tmp/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" to your clipboard and press Ctrl+Alt+R to see that it doesn't work: it does nothing by default, or shows actions added by the user in Klipper's settings.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.13.3
Comment 2 TraceyC 2025-04-09 22:30:15 UTC
Thanks for the bug report. I'm sorry we weren't able to get to this yet. There have been many fixes and improvements in Plasma 6, and this issue may have been fixed.

Can you please re-test on your system with Plasma 6.3.4 or later and let us know if you can still reproduce the problem? Thanks!
Comment 3 Bug Janitor Service 2025-04-24 03:47:27 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2025-05-09 03:46:41 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.