Nautilus-open-terminal right-click to open the terminal

Source: Internet
Author: User

1.1
Install Fedora
# Yum-y install Nautilus-open-terminal and log out of x Desktop.

Ubuntu Installation
# Sudo apt-Get install Nautilus-open-Terminal

1.2 If this error occurs during installation using the source code package

Checking for Nautilus... configure: Error: Package requirements (LIB Nautilus-extension> = 2.17.2 glib-2.0> = 2.4.0) were not met:

Package gio-2.0 was not found in the PKG-config search path. perhaps you shoshould Add the directory containing 'gio-2.0.pc' to the pkg_config_path environment variable package 'gio-000000', required by 'libnautilus-extension', not found consider adjusting
Environment Variable if you installed software in a non-standard prefix. alternatively, you may set the environment variables nautilus_cflags and nautilus_libs to avoid the need to call PKG-config. see the PKG-config man page for more details.

The installation package does not exist:
Use the build-dep option to install all dependent packages
Sudo apt-Get build-dep Nautilus-open-Terminal
(APT-Get build-dep automatically downloads and installs the packages required for source code creation. Only apt 0.5 or later versions support this function)

1.3 Other solutions

Use the Nautilus script
1. In the folder ~ /. Create a new script file under gnome2/Nautilus-scripts/, for example, open_nautilus_terminal name.

#! /Bin/bash CD 'dirname $ nautilus_script_current_uri'
Exec gnome-Terminal

2. Change permissions
Chmod + x open_nautilus_terminal

3. Right-click menu> SCRIPT> open_nautilus_terminal and click it to open the terminal at the current position of Nautilus.

A more advanced script

#! /Bin/bash
Base = "'echo $ nautilus_script_current_uri | cut-D'/'-F3-| SED's/% 20 // g ''"

If [-z "$ nautilus_script_selected_file_paths"]; then
Dir =$ {base}
Else
While [! -Z "$1"-! -D "$ {base}/$1"]; do
Shift
Done
Dir = "$ {base}/$1"
Fi

Gnome-terminal -- working-directory = "$ {dir }"

Replace the content of script 1. In this case, right-click a folder and choose --> script --> open_nautilus_terminal to open the terminal in the selected folder.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.