Bug 467169

Summary: Question: Cant integrate $USER Directories in user-places.xbel
Product: [Applications] dolphin Reporter: gonanza <gonanza>
Component: bars: locationAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel, r2b2x3+kdebug
Priority: NOR    
Version: 22.12.3   
Target Milestone: ---   
Platform: Debian testing   
OS: Other   
Latest Commit: Version Fixed In:

Description gonanza 2023-03-10 19:32:00 UTC
-pSUMMARY
***
In order to supply system-wide, future-open defaults (/etc/skel) I want to include something like a generic $HOME-variable (or $USER) in the user-places.xbel: f.e. should a places-bookmark point to the Documents-folder of the current user. 
Currently, only hard-coded folder-links like <bookmark href="file:///home/xyz/Documents"> (for user 'XYZ') seem to be supported, how could one alter the file to get something like <bookmark href="file:///$HOME/Documents">? Or is it possible to edit the defaults that create user-places.xbel in the first place when this file does not exist f.e. when a new user is added and the user-space gets populated automatically?

***


STEPS TO REPRODUCE
1. add new user to system (f.e. 'xyz')
2. dolphin creates user-places.xbel (from defaults)
3. edit this file pointing to $USER or $HOME (f.e. as default-file usable in /etc/skel) 

OBSERVED RESULT
when testing an altered user-places.xbel with $USER or $HOME in it on the current user, the according entries give errors or ar not visible anymore (and you cannot reuse the file for other users because you have to hard-code links to the user-directory)

EXPECTED RESULT
user-places.xbel should be open for inclusion of entries working with $USER or $HOME (dolphin itself does find $USER, but not when clicking on the edited 'place'.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: debian testing
(available in About System)
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION