Add create new document option in new context menu

Iā€™m trying to add an option to create a new document from the context menu but no success. I have followed the following link but instead of creating a new file, it opens the properties.

https://forum.kde.org/viewtopic.php?f=224&t=119342#

Also tried to place empty files in /home/USERS/Templates/ and /home/USERS/.local/share/templates/ but no luck.

without infos is hard to respond :wink:

for me:

tree ~/.local/share/templates/

/home/patrick/.local/share/templates/
ā”œā”€ā”€ EmailFile.desktop
ā”œā”€ā”€ HTMLFile.desktop
ā”œā”€ā”€ Modeles
ā”‚   ā”œā”€ā”€ bash.model.sh
ā”‚   ā”œā”€ā”€ email.eml
ā”‚   ā””ā”€ā”€ HTMLFile.html
ā””ā”€ā”€ sh.desktop

cat ~/.local/share/templates/HTMLFile.desktop

[Desktop Entry]
Name=HTML File...
Name[fr]=Fichier HTML...
Comment=HTML filename:
Comment[fr]=Saisir le nom du fichier HTML :
Type=Link
URL=Modeles/HTMLFile.html
Icon=text-html
2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.