Score:0

Templates in Ubuntu 22.04 not working

cn flag

I frequently use right click -> New Document in Nautilus, or "Files". After a recent update, I am no longer able to create an option for this via:

$ touch ~/Templates/Empty\ Document

The command creates the file in ~/Templates/, but it won't show up in the context menu.

I've tried all permutations of these steps:

  1. reboot
  2. check if option exists in files
  3. run touch command

I've also tried resetting Nautilus' settings with

$ dconf reset -f /org/gnome/nautilus/

Additionally, it may be worth noting that I've recently changed my system from auto-login to using a login screen upon boot. Other than that my install should be relatively clean other than installing and uninstalling chrome remote desktop. The issue only presented itself after the recent Ubuntu base (and other things) update

I would be curious to see if others can reproduce the issue. If not, a reinstall may solve my issue.

Hugo avatar
mx flag
Check the output of the command `xdg-user-dir TEMPLATES` to ensure it's pointing to where you expect the Templates directory to be.
UbuntuUser avatar
cn flag
Thanks! That was it. I had previously taken a step to remove items from the left side of Nautilus. It involved changing my ~/.config/user-dirs.dirs file and thus Templates was pointing to the wrong location.
Hugo avatar
mx flag
Good to hear
Score:1
cn flag

Solved! I had previously taken a step to remove items from the left side of Nautilus. It involved changing my ~/.config/user-dirs.dirs file and thus Templates was pointing to the wrong location.

Was able to determine the pointing location with

$ xdg-user-dir TEMPLATES
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.