Bug 467169 - Question: Cant integrate $USER Directories in user-places.xbel
Summary: Question: Cant integrate $USER Directories in user-places.xbel
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: bars: location (show other bugs)
Version: 22.12.3
Platform: Debian testing Other
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-10 19:32 UTC by gonanza
Modified: 2023-05-30 00:24 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

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