Bug 425678

Summary: Dolphin does not detect samba share depending on the way I launch it
Product: [Frameworks and Libraries] kdenetwork-filesharing Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Harald Sitter <sitter>
Status: RESOLVED FIXED    
Severity: normal CC: kfm-devel, nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In: 20.12
Attachments: screen recording

Description Patrick Silva 2020-08-22 14:05:18 UTC
Created attachment 131099 [details]
screen recording

SUMMARY
Watch the attached screen recording please.
I have a link to my Home and "Dolphin" icon on my desktop.
When I use "Dolphin" icon to launch it, my samba share is properly detected,
but it is not when I use the link to my Home.
The samba share shown in my screen recording was created after I launch Dolphin
via "Dolphin" icon.

EXPECTED RESULT
Dolphin should always properly detect samba shares

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.19.80
KDE Frameworks Version: 5.74.0
Qt Version: 5.14.2
Comment 1 Nate Graham 2020-08-22 19:21:25 UTC
I can reproduce.
Comment 2 Harald Sitter 2020-08-24 09:19:14 UTC
🤪 that makes the path /home/$user/Desktop/$user/Public
Comment 3 Bug Janitor Service 2020-08-24 09:49:47 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/kdenetwork-filesharing/-/merge_requests/8
Comment 4 Harald Sitter 2020-08-24 15:39:02 UTC
Git commit cf4538ca437bf6aff209dc03e09662e6e638e7e0 by Harald Sitter.
Committed on 24/08/2020 at 15:38.
Pushed by sitter into branch 'master'.

resolve paths to their canonical representation

this resolves all symlinks along the way to reach the most canonical
representation of the path.

without this a symlink of your home you place on the desktop is a
strictly different path than your home since it is nested inside
$HOME/Desktop/$USER
FIXED-IN: 20.12

M  +2    -1    samba/filepropertiesplugin/sambausershareplugin.cpp

https://invent.kde.org/network/kdenetwork-filesharing/commit/cf4538ca437bf6aff209dc03e09662e6e638e7e0