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 to get Nautilus-scripts (Terminal here, Root Nautilus, Root Gedit) working on Ubuntu 13.04?

I copied those scripts to .gnome2/nautilus-scripts folder but it dose not seem to work on Ubuntu 13.04. It worked in 12.10.

share|improve this question

3 Answers 3

up vote 15 down vote accepted

Try putting scripts in /home/$USER/.local/share/nautilus/scripts/

This is my scripts folder: Nautilus Scripts Folder

This is the result: enter image description here

share|improve this answer
3  
That works but the script only comes up if I right click on a folder or a file and not on empty space in nautilus –  Rushabh RajeshKumar Padalia Apr 23 '13 at 1:21
    
I am not sure how to get right clicking empty space to open up the Nautilus script menu, but I think that would be another question. The folder used above does (I believe) work on right click of empty space in 12.10. I will confirm that soon, when I can get on a computer with 12.10. –  DaboRoss Apr 23 '13 at 6:59
    
your method works with nautilus 3.4 perfectly. The problem is only with nautilus 3.6. Anyways, temporary I am using Nemo file manager in which "open in terminal" and "open as root" are build in. –  Rushabh RajeshKumar Padalia Apr 23 '13 at 13:47
    
Ok! I think if you want more help with this though you should probably make a new question about right clicking in empty space with the new nautilus. As this question is about getting the scripts to work at all. I will try to look for an answer though –  DaboRoss Apr 23 '13 at 18:24

Nautilus Actions

We may define our own right-click context menu items with nautilus-actions Install nautilus-actions.

  • Run the Nautilus-Actions Configuration Tool either from the Dash, or from a terminal with

    nautilus-actions-config-tool
    

With this tool I was able to make a context menu item to open terminal here. I've followed these steps:

enter image description here

enter image description here

enter image description here

One thing to note... It didn't show up on toolbar, or I didn't know where to look for it. So you don't have to check those two boxes in the second screenshot.

The whole thing works nicely, and I can click on files/folders or empty space to open terminal on current folder. It took a little effort to find out that the correct variable for folder path was "%d/%w".

When I was in /home/logan/games:

  • %d would get /home/logan if clicked on empty space
  • %d would get /home/logan/games if clicked on any file/folder under games folder

But %d/%w seems to work for both empty space and on folder/file.

You may also need to logout and log back in, unless you restart nautilus to reload the context menu.

share|improve this answer

Just use Nautilus-Action script to implement this.

Install gksu and nautilus-actions from the Software Centre Then open the Nautilus-Action Configuration Tool

In the Nautilus-Action Configuration Tool create a new action In the Action tab, type 'Open Folder As Root' in the Context label In the Command tab, input the values 'gksu' and 'nautilus %d/%w' in Command Path and Parameters respectively. Then Restart nautilus : nautilus -q

share|improve this answer

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.