Bug 432779

Summary: Konsole understands multiple dots as a file path
Product: [Applications] konsole Reporter: Felipe Kinoshita <kinofhek>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: normal CC: a.samirh78
Priority: NOR    
Version: 20.12.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: video showing observed result

Description Felipe Kinoshita 2021-02-11 01:09:01 UTC
Created attachment 135586 [details]
video showing observed result

When some program outputs multiple dots konsole understands it as a file path but it isn't so when trying to open it konsole will show a error message.

STEPS TO REPRODUCE
1. press "." multiple times or use some program that outputs a lot of dots (e.g zypper when installing a package).
2. open it (e.g with ctrl + click) as it was a file.

OBSERVED RESULT
konsole shows a error message.

EXPECTED RESULT
konsole should not see multiple dots as a file path.

Linux/KDE Plasma: openSUSE Tumbleweed
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Comment 2 Ahmad Samir 2021-02-15 23:09:04 UTC
Git commit ac0b5ef4a8ffe7ae92508c113f6eaabadd62e0e4 by Ahmad Samir.
Committed on 15/02/2021 at 22:42.
Pushed by hindenburg into branch 'master'.

FileFilter: don't create a hotspot for '................'

Only '.' and '..' could be valid hotspots, but '..........' isn't. The
latter is used by some CLI tools to indicate progress ...etc.

To test, in any dir use `ls -a`, Ctrl + clicking '.' and '..' should
open the current dir and parent of the current dir respectively.

Type .......... at the prompt, before it would get underlined, after no
hotspot will be created for it.

M  +6    -0    src/filterHotSpots/FileFilter.cpp

https://invent.kde.org/utilities/konsole/commit/ac0b5ef4a8ffe7ae92508c113f6eaabadd62e0e4