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?
Asked
Active
Viewed 6.7k times
1 Answers
214
If you drop any files in this folder, for example
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.
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"
fossfreedom
- 174,664
xdg-user-dirimplementation all we get? https://www.freedesktop.org/wiki/Software/xdg-user-dirs/ – Ciro Santilli OurBigBook.com Dec 10 '16 at 12:11ext4mounts but on filesystem typesfuseorcifsmounts (i.e. network drives and local ntfs drives) the executable flag gets set automatically upon creation of the file. How can I inhibit this? – Pau Coma Ramirez Jan 28 '21 at 10:06gedit ~/.config/user-dirs.dirsand perhaps also a little bit more foolproof would be something likexdg-user-dirs-update --set TEMPLATES "$HOME/my templates". – DJCrashdummy Jun 19 '24 at 12:08