LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Right-click "Terminal here" menu item....? (https://www.linuxquestions.org/questions/linux-software-2/right-click-terminal-here-menu-item-355910/)

dangerousdave 08-22-2005 03:34 PM

Right-click "Terminal here" menu item....?
 
Hello all,

One little utility that would be unbelievably useful for me. So often I'm browsing through my drives with gnome and I find theres something I want to do in that directory that I need a terminal for, so I have to open a terminal and navigate to that directory and do whatever. What would be really good is if I could right-click on a directory in the gui and click something like "Open Terminal Here".

This sounds like a simple task to add this functionality, but unfortunately I wouldnt know where to start.

Can anyone tell me how or point me in the direction of a plugin/guide?

Cheers,

apeekaboo 08-22-2005 03:46 PM

You're using nautilus for browsing files, right?

I have a script in ~/.gnome2/nautilus-scripts/ containing:
Code:

#!/bin/bash

IFS=$'\t\n'

dir="${NAUTILUS_SCRIPT_CURRENT_URI:=$@}"

cd $dir

exec aterm -ls -rv -tr +sb -sh 50 -g 80x30 -fn -misc-fixed-*-r-normal-*-*-140-*-*-*-*-iso8859-* -fade 80 -sl 1000

Restart nautilus and you'll find the script in the script menu when you right click in nautilus.

dangerousdave 08-22-2005 04:38 PM

Hey, thanks for the response. I am using nautilus, but I didnt have a nautilus-scripts directory... so I created it, made a file called termhere.sh and pasted that code in. I restarted my computer and tried a right-click in file browser... and nothing, no scripts menu... is there specific filename or different place I should put the script?

dangerousdave 08-22-2005 05:39 PM

After a little browsing I found that apparently gnome has removed support for this in later versions. Anyone know any way I can add the support back, or an alternative method?

ironwalker 08-22-2005 05:41 PM

Krusader has this function.

apeekaboo 08-23-2005 03:28 AM

Strange to remove such a nice feature. :confused:
I use many different scripts in nautilus...
What version of nautilus are you using? (see help -> about in nautilus)

dangerousdave 08-25-2005 04:09 PM

I'm using version 2.10.0.

apeekaboo 08-26-2005 02:27 AM

I'm using 2.8.2... Maybe I should'nt upgrade then. :confused:
Where did you read about the feature being removed?

I found this interesting discussion which perhaps may be of some help.
It suggests that you remove the hash-bang (#!/bin/bash)from the first line of the scripts.


All times are GMT -5. The time now is 05:43 AM.