I was trying to override the libreoffice templates that my distro provides with local ones that I modified (so they won't get overwritten on updates) but this doesn't seem to work. Also it seems that KDE detects that a template is the same by having the same URL field in the .desktop file. Which means if they have the same relative URL they'll be treated as the same template. A workaround for now is to remove libreoffice-plasma package so that there are no templates in /usr/share/templates
If the fix implemented here does not fit your expectations, please let us know. *** This bug has been marked as a duplicate of bug 191632 ***
Not a duplicate. It seems our de-duplication of templates ( inverse the priority as you expect here. The user ones seem listed after the system ones, https://invent.kde.org/frameworks/kio/-/merge_requests/1688/diffs#ab4c31cc35d63288acfb260ffe3d2e5617cc0716_1071_1078) consequently, you can't overwrite them. Inverting the order of the templates when adding templates might be sufficient: https://invent.kde.org/frameworks/kio/-/merge_requests/1688/diffs#ab4c31cc35d63288acfb260ffe3d2e5617cc0716_1043_1032