On Mon, Oct 14, 2002 at 04:25:57PM +1300, Mark Carey wrote:
> [With Nautilus] I would like at least to be able to right click
> and open a new terminal in the current directory
Try this: (It's clumsy, yeah, but maybe better than nothing...)
Put the following script in your ~/.gnome2/nautilus-scripts/
directory (name it XTerm_here.sh, say):
#!/bin/bash
if [ -z "$NAUTILUS_SCRIPT_CURRENT_URI" ]
then
FOLDER="$HOME"
elif [ "$NAUTILUS_SCRIPT_CURRENT_URI" = "file://$HOME/.gnome-desktop" ]
then
FOLDER="$HOME"
else
FOLDER=`echo "$NAUTILUS_SCRIPT_CURRENT_URI" \
| sed -e 's/^file:\/\///' -e 's/%20/\ /g`
fi
cd "$FOLDER" && xterm
exit 0
Make it executable. E.g., if you named the script XTerm_here.sh:
$ chmod u+x ~/.gnome2/nautilus-scripts/XTerm_here.sh
Now, right-click on the desktop and go to the Scripts submenu. The
new script will probably not be listed, so go down to "Open Scripts
Folder" and select that. That should get the script noticed and
added to the right-click -> Scripts submenu.
> Ideally a ctrl+t would do it but lets try for a menu first should
> be a little easier. The problem is I cant even find any
> documentation on how one goes about modifying the menus for
> nautilus, any pointers.
As far as I know, those things can't be done.
> My second pet hate is the inability to change the opening of my
> .eps files to open in gv not in nautilis' embedded viewer ggv. I
> have changed the association in the File Types and Programs and
> disabled the viewer component but nautilis does not seem to be
> listening, any pointers there?
Sorry to say, I've not had a lot of luck with that sort of thing. I
sometimes end up using either Nautilus scripts (as above) or desktop
launchers instead. (To pass arguments to a program/script called
from a launcher, use '%U'. For example, a launcher with 'gv %U' as
its command should open a dragged-n-dropped .eps file using gv.)
So... no, that's not ideal.
Nautilus is under heavy development though. Some of the lists here
are kinda interesting to follow:
http://mail.gnome.org/archives/
Tim
--
Timothy Musson - [EMAIL PROTECTED]
http://homepages.ihug.co.nz/~trmusson/
. . .Shake container well prior to use