sobre menu contextual de nautilus

Jose Luis Jiménez jljmarin en gmail.com
Jue Dic 28 22:32:07 GMT 2006


On 12/28/06, tarajano <tarajano en bioinfo.cu> wrote:
> hola lista:
>
> he instalado la aplicacion  *nautilus-open-terminal *que me permite
> abrir una terminal en el directorio actual en q se encuentre el nautilus
> pero resulta q deseo utilizar mi terminal preferida /*mrxvt */y no la
> gnome-terminal
> que es la definida por el sistema..
> alguna idea sobre como cambiar esto

¿Has probado a cambiarlo en Preferencias -> Aplicaciones preferidas -> Terminal?

Si eso no funciona siempre puedes crearte un nautilus-script. Yo tengo
que creo recordar lo saqué de http://g-scripts.sourceforge.net/ (o tal
vez del wiki de Ubuntu) que me lanza el x-terminal-emulator (es un
link que apunta a gnome-terminal) pero seguro que adaptandolo podrías
hacer que lance el terminal que te interese:

------------------- INICIO  SCRIPT ----------------------
#!/bin/bash
#
# This script opens a gnome-terminal in the directory you select.
#
# Distributed under the terms of GNU GPL version 2 or later
#
# Install in ~/.gnome2/nautilus-scripts or ~/Nautilus/scripts
# You need to be running Nautilus 1.0.3+ to use scripts.

# When a directory is selected, go there. Otherwise go to current
# directory. If more than one directory is selected, show error.
if [ -n "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" ]; then
set $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
if [ $# -eq 1 ]; then
destination="$1"
# Go to file's directory if it's a file
if [ ! -d "$destination" ]; then
destination="`dirname "$destination"`"
fi
else
zenity --error --title="Error - Open terminal here" \
--text="You can only select one directory."
exit 1
fi
else
destination="`echo "$NAUTILUS_SCRIPT_CURRENT_URI" | sed 's/^file:\/\///'`"
fi

# It's only possible to go to local directories
if [ -n "`echo "$destination" | grep '^[a-zA-Z0-9]?\+:'`" ]; then
zenity --error --title="Error - Open terminal here" \
--text="Only local directories can be used."
exit 1
fi

cd "$destination"
exec x-terminal-emulator
------------------- FIN  SCRIPT ----------------------


Saludos



-- 
______________________________________________________________________
Jose Luis Jimenez (Getafe, Madrid, España)
Socio de Hispalinux: #1555
Usuario GNU/Linux: #187758
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=187758
Mi otro yo en Ubuntu-es http://www.ubuntu-es.org/index.php?q=user/635
______________________________________________________________________



Más información sobre la lista de distribución ubuntu-es