Bug 457162 - Ctrl+Alt+R and "Invoke action" button don't show .desktop actions for URLs longer than 200 characters
Summary: Ctrl+Alt+R and "Invoke action" button don't show .desktop actions for URLs lo...
Status: NEEDSINFO WAITINGFORINFO
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard widget & pop-up (show other bugs)
Version: 5.24.4
Platform: Other Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-26 14:05 UTC by nxqrsa
Modified: 2025-04-24 03:47 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 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!