Bug 498540 - Files/folders with '#' in their path are not shown correctly as symlink targets in the status bar
Summary: Files/folders with '#' in their path are not shown correctly as symlink targe...
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: bars: status (show other bugs)
Version: 24.12.1
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-11 21:24 UTC by Luca Saalfeld
Modified: 2025-01-14 19:42 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
full path in the details view, cut off path in dolphin (32.07 KB, image/png)
2025-01-11 21:24 UTC, Luca Saalfeld
Details
Left cut off link, right correct link (154.86 KB, image/png)
2025-01-14 18:05 UTC, Luca Saalfeld
Details

Note You need to log in before you can comment on or make changes to this bug.
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.