Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

I'm on 12.04.

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

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.

share|improve this answer
    
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. –  broiyan Jun 6 '13 at 5: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 6 '13 at 6: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 6 '13 at 6:06
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 –  broiyan Jun 7 '13 at 14:24
add comment

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

share|improve this answer
    
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? –  broiyan Jun 6 '13 at 5: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 6 '13 at 6:05
    
This Post will help you as well. –  Mitch Jun 6 '13 at 7:13
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.