Bug 498540

Summary: Files/folders with '#' in their path are not shown correctly as symlink targets in the status bar
Product: [Applications] dolphin Reporter: Luca Saalfeld <luluklzde>
Component: bars: statusAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: akselmo, dolphin-bugs-null, luluklzde, nate
Priority: NOR    
Version First Reported In: 24.12.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: full path in the details view, cut off path in dolphin
Left cut off link, right correct link

Description Luca Saalfeld 2025-01-11 21:24:19 UTC
Created attachment 177292 [details]
full path in the details view, cut off path in dolphin

SUMMARY
When a symlink is selected it's target is shown in Dolphin's status bar. At least the '#'-symbol can cut off the shown path.

STEPS TO REPRODUCE
1. Create a symlink to a file/folder within a folder with an '#'
2. Select the symlink

OBSERVED RESULT
The full path of the symlink is cut off

EXPECTED RESULT
The full path is shown, whether a '#' is in it or not

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Kernel Version: 6.12.8-zen1-1-zen (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
I have not tested this with other symbols. There are probably more that just the '#'.
Comment 1 Nate Graham 2025-01-13 22:15:28 UTC
I can't reproduce this with git master.
Comment 2 Luca Saalfeld 2025-01-14 08:29:00 UTC
I just compiled the git master to see this too and I got it again (though in this case it just says 'Link to ').

The commands I've used:
mkdir \#TestFolder
touch \#TestFolder/TestFile
ln -s \#TestFolder/TestFile TestLink

The TestLink is now cut off (just 'Link to ').

In case this was a config issue, I also tested this on a new account with the same result.
Comment 3 Nate Graham 2025-01-14 17:37:06 UTC
I think there may be some confusion here. The text shown in Dolphin's status bar is supposed to be just the filename, not the full path.

So if there's a # somewhere in the full path but not in the filename itself, then it would be intentionally not shown on the status bar, because the status bar only shows the filename.
Comment 4 Luca Saalfeld 2025-01-14 18:05:29 UTC
Created attachment 177352 [details]
Left cut off link, right correct link

I'm not sure if we both are talking about different things.

In the screenshot the left side shows the cut off link. The bottom bar shows 'TestLink (Empty document, Link to )', even though 'Link to #TestFolder/TestFile' would be correct.
The right shows a correct link. 'plugins (Folder, Link to /usr/share/zsh/plugins)'.

What I mean is that the path (here #TestFolder/TestFile) is missing completely (or cut off, since the #Folder is the first folder).
Comment 5 Nate Graham 2025-01-14 19:42:25 UTC
Ah, I get it now. Can reproduce.