8

How do I add LibreOffice word processing to the options on the Nautilus right click create new document menu?

I'm on 12.04.

H2ONaCl
  • 9,693

2 Answers2

15

The "Create new document" dialog sources its entries from ~/Templates. Simply put an empty Libreoffice document in that folder or create a subfolder with multiple documents and you will be able to create LO documents from the context menu in Nautilus.

The same method applies to any other type of file, of course.

Glutanimate
  • 21,393
  • There is no ~/Templates folder. I created it. It now contains "Untitled 1.odt" which is an empty LibreOffice word processing document. The right-click menu still does not offer LibreOffice. – H2ONaCl Jun 06 '13 at 05:38
  • @broiyan That's strange, especially if you're on 12.04. Templates work fine here. You might have to adapt the folder name to your locale. Are your other standard home folders in English or another language? (e.g. Pictures, Music, Video). Make sure to put the folder under your own username (e.g. /home/broiyan/Templates). Please see here for more information. – Glutanimate Jun 06 '13 at 06:06
  • @broiyan One user there reports a similar issue, where the Templates folder is not recognized. He found a solution, which might work for you. – Glutanimate Jun 06 '13 at 06:06
  • 3
  • 1
    Thanks Glutanimate. The problem is that ~/Templates was deleted and to restore it you need to use Ubuntu Tweak. Once restored, adding empty documents works as you have described. This link describes using Ubuntu Tweak to restore the folder. link – H2ONaCl Jun 07 '13 at 14:24
  • 1
    A large pack of templates can be downloaded from here http://gnome-look.org/content/show.php/?content=129681 – opticyclic Jul 03 '14 at 08:37
  • 1
    And whatever you name the file will be the name that shows up in the menu. – Ian Martin Oct 29 '15 at 12:01
1

You can try Nautilus Actions.

Nautilus-action allows you to define custom actions or commands for certain file types or files with names matching your description. There are plenty of things that you can do with nautilus-action.

To install it, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install nautilus-actions

When its done, search for nautilus in Dash, and click on it.

enter image description here

Once it opens, you well see the program, and then you can create a new context menu.

enter image description here

Mitch
  • 107,631
  • Is a new menu really necessary when the existing menu already allows the creation of new documents, unfortunately, only a text file. In any event, this did not work for me. Are these instructions complete? What will go into this menu? Does this menu invoke LibreOffice and if so, then how? – H2ONaCl Jun 06 '13 at 05:40
  • If you want the open with Libreoffice, then you need to add that menu. To add it just follow the screens in Nautilus Actions. The instructions are complete, you just have to actually create the menu. Look at this example, it will help. – Mitch Jun 06 '13 at 06:05
  • This Post will help you as well. – Mitch Jun 06 '13 at 07:13