13

How can I add a right-click desktop menu entry to create a text file to Gnome 3 in Ubuntu 16.04.02?

16

Create a blank text file (you can create any type of file, not just text) in ~/Templates. Then in the right click menu under New document it will appear.

enter image description here


Note: If your system language is not English, "Templates" is probably not the correct folder name in your case. Look for a folder already there in your ~/ whose name is equivalent to the English word "Templates". You can also get the location of the template folder by running the following command:

xdg-user-dir TEMPLATES

For example, in French it should be "Modèles" (screenshot courtesy of atmon3r):
enter image description here

  • 3
    works in Ubuntu 18.04 too – zwolin Sep 28 '18 at 16:15
  • 1
    kudos for the xdg-user-dir hint – denispyr Oct 7 '19 at 19:41

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.