Bug 415544

Summary: wrong content when create new file with template
Product: [Applications] dolphin Reporter: coder-ingramyang
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: dolphin-bugs-null, justin.zobel
Priority: NOR    
Version First Reported In: 19.08.3   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description coder-ingramyang 2019-12-25 08:53:42 UTC
SUMMARY
Once you have created the template you need in your home directory, create a new related file using dolphin, and the contents of the file are replaced with dolphin's default content, such as a desktop file

STEPS TO REPRODUCE
1. make a demo.desktop file in /home/template
2. write lines in the file:
[Desktop Entry]
Name=xx
Comment=xx
Exec=xx
Icon=xx
Terminal=false
Type=Application
3. create new xx file in other location
4. open the new file, you'll find a different file content from template

OBSERVED RESULT
a different content with template

EXPECTED RESULT
a same content with template

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 
Operating System: Manjaro Linux 
KDE Plasma Version: 5.17.4
KDE Frameworks Version: 5.64.0
Qt Version: 5.13.2
Kernel Version: 5.3.15-1-MANJARO
OS Type: 64-bit
Processors: 6 × Intel® Core™ i5-9400 CPU @ 2.90GHz
Memory: 15.5 GiB
Comment 1 Justin Zobel 2021-06-21 03:18:04 UTC
Confirmed on dolphin from git master.