°²×°Ò»¸ö°ü£¬¼´¿ÉÔÚÓÒ¼üÀïÃæÌí¼ÓÒ»¸ö¡°´ò¿ªÖÕ¶Ë¡±µÄ²Ëµ¥¡£
sudo apt-get install nautilus-open-terminal
µÚ¶þÖÖ·½·¨£º
½øÈëÖ÷Ŀ¼µÄ.gnome2/nautilus-scriptsĿ¼¡£Ð½¨Ò»¸öÎļþ£¬ÎļþÃûÈÎÒ⣨Õâ¸öÎļþÃû»áÏÔʾÔÚÓÒ¼ü²Ëµ¥À×îºÃÊÇͨË×Ò×¶®µÄ£¬±ÈÈç¡°´ò¿ªÖÕ¶Ë¡±»ò¡°open-terminal¡±£©£¬ÎļþÄÚÈÝÈçÏ¡£
ÒýÓÃ:#!/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
Ìí¼ÓÍêºó£¬°Ñ´ËÎļþ¼ÓÉÏ¿ÉÖ´ÐеÄȨÏÞ¡£
chmod +x Îļþ
ÏÖÔÚÀ´½²½²Á½ÖÖ·½·¨µÄÓÅÁÓ£º
1.µÚ¶þÖÖ·½·¨½¨³öÀ´µÄÊÇÒ»¸ö¶þ¼¶²Ëµ¥£¬ËüÏÈÊÇÔÚÓÒ¼ü²Ëµ¥ÖÐÌí¼ÓÒ»¸öÃû½ÐscriptsµÄ²Ëµ¥£¬ÔÚÕâ¸ö²Ëµ¥Ï²ÅÊÇÎÒÃÇÐèÒªµÄ¡°´ò¿ªÖÕ¶Ë¡±»ò¡°open- terminal¡±£¨Õâ¸öµØ·½µÄÃû×ÖÊÇÄãн¨µÄ½Å±¾µÄÎļþÃû£©£¬ËùÒÔÏÔµÃÓÐЩ²»·½±ã¡£µÚÒ»ÖÖ·½·¨ÊÇÖ±½ÓÔÚÓÒ¼ü²Ëµ¥ÖÐÌí¼Ó²Ëµ¥¡£
2.Á½ÖÖ·½·¨¶¼ÊÇ»ùÓÚnautilusµÄ£¬ÔÚÈκÎnautilusµÄ½çÃæÖУ¬¶¼¿ÉÒÔÆôÓô˹¦ÄÜ£¬¸üÌØ±ðµÄÊǵڶþÖÖ·½·¨£¬Ëü»áʶ±ðµ±Ç°Ä¿Â¼£¬´ò¿ªµÄÖÕ¶ËĬÈϾÍÊǵ±Ç°Ä¿Â¼£¬Õâµã±È½ÏÈËÐÔ»¯£¬¶øµÚÒ»ÖÖ·½·¨£¬ÎÞÂÛÄãÔÚʲôĿ¼£¬Ëü´ò¿ªºóĬÈϵÄĿ¼¶¼ÊÇÖ÷Ŀ¼¡£