LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-22-2005, 03:34 PM   #1
dangerousdave
Member
 
Registered: Feb 2005
Distribution: Ubuntu 8.04
Posts: 100

Rep: Reputation: 15
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,
 
Old 08-22-2005, 03:46 PM   #2
apeekaboo
Member
 
Registered: Apr 2003
Location: Stockholm/Sweden
Distribution: Kubuntu, Debian, Slax
Posts: 91

Rep: Reputation: 16
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.
 
Old 08-22-2005, 04:38 PM   #3
dangerousdave
Member
 
Registered: Feb 2005
Distribution: Ubuntu 8.04
Posts: 100

Original Poster
Rep: Reputation: 15
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?
 
Old 08-22-2005, 05:39 PM   #4
dangerousdave
Member
 
Registered: Feb 2005
Distribution: Ubuntu 8.04
Posts: 100

Original Poster
Rep: Reputation: 15
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?
 
Old 08-22-2005, 05:41 PM   #5
ironwalker
Member
 
Registered: Feb 2003
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
Posts: 506

Rep: Reputation: Disabled
Krusader has this function.
 
Old 08-23-2005, 03:28 AM   #6
apeekaboo
Member
 
Registered: Apr 2003
Location: Stockholm/Sweden
Distribution: Kubuntu, Debian, Slax
Posts: 91

Rep: Reputation: 16
Strange to remove such a nice feature.
I use many different scripts in nautilus...
What version of nautilus are you using? (see help -> about in nautilus)
 
Old 08-25-2005, 04:09 PM   #7
dangerousdave
Member
 
Registered: Feb 2005
Distribution: Ubuntu 8.04
Posts: 100

Original Poster
Rep: Reputation: 15
I'm using version 2.10.0.
 
Old 08-26-2005, 02:27 AM   #8
apeekaboo
Member
 
Registered: Apr 2003
Location: Stockholm/Sweden
Distribution: Kubuntu, Debian, Slax
Posts: 91

Rep: Reputation: 16
I'm using 2.8.2... Maybe I should'nt upgrade then.
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to "run application" - restoring the item from main menu? johnnydangerous Fedora 2 10-21-2005 09:27 AM
#$%$ ... my "right-click menu" in kde is gone nozey Linux - Newbie 2 08-27-2005 02:43 PM
"Switch user" menu item in KDE jimk Linux - Software 6 01-15-2005 05:44 AM
Upgrade to c3 causes system to reboot when you click the "View" menu on a window. wellsa Fedora 1 12-21-2004 11:42 AM
add menu item to lauch "/ " demmylls Linux - General 2 09-23-2003 03:49 PM


All times are GMT -5. The time now is 05:29 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration