Ubuntu – How to restore the Templates folder in Ubuntu 18.04

18.04nautilustemplates

I deleted the "Templates" folder some time ago. Yesterday I made new Templates folder and I created a template for an empty document, but it's not working.

Does someone know how to restore the Templates folder, or how to fix this?

Best Answer

By default, this folder is empty.

It is declared for Gnome Shell in this file

~/.config/user-dirs.dirs

Where should stand the line

XDG_TEMPLATES_DIR="$HOME/Templates"

Of course, the Template Folder name depends on your locale and language

If the line has been removed because off the deleted folder, you will just have to create a new one and add the line.

Related Question