Bug 462038

Summary: Default "Places" are one-time and don't reflect the user's current actual home directory
Product: [Applications] dolphin Reporter: kde
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kde, kfm-devel
Priority: NOR    
Version: 22.08.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description kde 2022-11-19 22:21:25 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Open dolphin as usual, the default created places (Home, Downloads, etc) work fine
2. Log out, log in as root, change/move the user's home directory (e.g. to go along with the process of changing username)
`usermod -d /home/newdir -m user`
3. Log in as the user again, open dolphin again, check places

OBSERVED RESULT
They still point to the prior home directory, and there's an error because that location doesn't exist

EXPECTED RESULT
Should follow the user's home directory ~ instead of needing to be manually updated. 
Could be argued that this is intended, that places thould not be smart and change where they point. But I feel clicking the untouched, default "Home" link should take you to what is your set home directory, not the home directory that was set when you first opened dolphin. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux x86_64 (up-to-date as of 11/19)
(available in About System)
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION
When changing username and home directory to match, all of Plasma handles it just fine as far as I can tell, except for the default places which just stay set to the old directory and each need to be changed manually.