Bug 483297

Summary: ls --hyperlink links (file URLs with a host name) do not work
Product: [Applications] konsole Reporter: derikson3
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: REPORTED ---    
Severity: normal CC: fanzhuyifan
Priority: NOR    
Version: 23.08.1   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description derikson3 2024-03-11 22:14:34 UTC
SUMMARY

GNU coretils outputs file URLs with a hostname when using "ls --hyperlink", e.g. "file://myhost/tmp".  Clicking links like these does nothing, but if the host name is removed they work.

STEPS TO REPRODUCE

1. Edit the current profile and turn on "Allow escape sequences for links"
2. ls --hyperlink
3. ctl + click a file or directory

or

1. echo file://$(hostname)/tmp
2. ctl + click the output

or

1. echo file://localhost/tmp
2. ctl + click the output

OBSERVED RESULT

Nothing happens.

EXPECTED RESULT

The file or directory is opened in the correct application.
This does work properly for file:///tmp , but doesn't work for file://localhost/tmp . It also works for file://tmp , which it probably shouldn't

SOFTWARE/OS VERSIONS

Linux: 6.5.0
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10