Bug 466598

Summary: Configuration error: changing the home folder to a symbolic link (is an existing directory)
Product: [Applications] dolphin Reporter: gottfried.mueller
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: dolphin-bugs-null, kdedev, pr715, qxlddwas
Priority: NOR    
Version First Reported In: 22.12.2   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: patch to fix symlink as directory

Description gottfried.mueller 2023-02-28 12:41:21 UTC
Changing the home folder to a symbolic link brings the following error:

The location for the home folder is invalid or does not exist, it will not be applied.
Comment 1 Johannes Sasongko 2025-01-01 14:41:12 UTC
I think this is due to how the isDir check in FoldersTabsSettingsPage::applySettings is done [1]. Perhaps it needs KIO::StatDetail::StatResolveSymlink ?

[1] https://invent.kde.org/system/dolphin/-/blob/07da115293dacf702e398e402bc61f0ce386e87c/src/settings/interface/folderstabssettingspage.cpp#L182
Comment 2 John Kizer 2025-05-16 19:25:21 UTC
*** Bug 504159 has been marked as a duplicate of this bug. ***
Comment 3 Martin 2025-05-17 09:09:50 UTC
Created attachment 181419 [details]
patch to fix symlink as directory

With the attached patch, using a symlinked directory works.
Comment 4 Martin 2025-05-17 09:11:03 UTC
(In reply to Martin from comment #3)

This was 25.04.1, btw.