Nautilus can't find my Templates folder

Asked by Collin Stocks

I have placed a folder in my Home directory called "Templates" and placed some files in it. Nautilus is supposed to recognize this folder and put the files in the context menu under "Create Document". Instead, it says "No Templates Installed", and has an option to create an empty file.

When I click on Templates on the "Go" menu, nautilus takes me to my Home directory. This leads me to believe that something got messed up when I upgraded from 7.04 to 7.10, and Nautilus no longer knows the path to my Templates folder.

What file might I have to edit in order to fix this? I already tried searching for "template", "templates", etc, in the configuration editor, and came up with nothing relevant.

Another note: I have had this problem for a while. A while ago, when I clicked on "Go>>Templates", nautilus would create a directory called "Templates" in "~/.Trash" (my trash directory). Now it does nothing except take me to my home directory.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Albert Damen
Solved:
Last query:
Last reply:
Revision history for this message
Best Albert Damen (albrt) said :
#1

The path for the standard folders in nautilus is stored in the file ~/.config/user-dirs.dirs (that means .config/user-dirs.dirs in your home directory).

I have for my Templates folder:
XDG_TEMPLATES_DIR="$HOME/Templates"

I think you will first need to check this setting, before looking in the second part of your question. The 2nd issue may well be related to the first problem.

Revision history for this message
Collin Stocks (collinstocks) said :
#2

Thanks albert, that solved my question.

Revision history for this message
Collin Stocks (collinstocks) said :
#3

Thank you so much, Albert. Here is what was originally in the file (no surprises, based on my explanation):

######
#begin

# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/"
XDG_DOWNLOAD_DIR="$HOME/"
XDG_TEMPLATES_DIR="$HOME/"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_DOCUMENTS_DIR="$HOME/"
XDG_MUSIC_DIR="$HOME/"
XDG_PICTURES_DIR="$HOME/"
XDG_VIDEOS_DIR="$HOME/"

#end
####

And here is to what I changed it:

######
#begin

# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/Desktop"
#XDG_DOWNLOAD_DIR="$HOME/"
XDG_TEMPLATES_DIR="$HOME/Templates"
#XDG_PUBLICSHARE_DIR="$HOME/"
XDG_DOCUMENTS_DIR="$HOME/"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
#XDG_VIDEOS_DIR="$HOME/"

#end
####