93

For as long as I can remember, every time I install Ubuntu there is a folder in the home directory called "Templates." I've always just deleted it, but I'm curious: what's it supposed to be used for, and why is it in the default install?

  • 2
    Great question. I've always done the same thing, deleting the folder after installing. I think @fossfreedom just made our lives a little bit easier. – Tom Brossman Jan 12 '12 at 17:20
139

If you drop any files in this folder, for example

enter image description here

then when you right-click and create a new document, you can select any of these files as a basis for the new file - i.e. a template.

enter image description here

For as long as I remember, this has always been a standard feature on many desktops such as Gnome.


If you have deleted the folder and need to restore this functionality:

gedit ~/.config/user-dirs.dirs

Check that there is a line containing the following - if not, add this line.

XDG_TEMPLATES_DIR="$HOME/Templates"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.