For all of you that use the nautilus-open-terminal utility, which allows you to right-click on the desktop and quickly open a terminal, you may be interested in this quick-tip.  Thanks goes to a comment on Clint Savage’s blog for pointing this out to me.

In previous releases this utility would open the home directory by default when launched from the desktop.  I’ve noticed currently that this behavior has changed.  If you’d like to toggle this option you can use the following command:

gconftool-2 --set --type=bool /apps/nautilus-open-terminal/desktop_opens_home_dir true

Set the value back to “false” if you prefer it to open the Desktop when used.  Enjoy.

If this site has been useful, please consider participating in the Fundraiser.

Other Points of Interest

Comments

5 Responses to “Update nautilus-open-terminal Behavior (desktop_opens_home_dir)”

  1. Johan on November 6th, 2008 8:14 am

    If open a terminal is all you want using a key binding for Open Terminal is really nice. I have mine bound to -Return, use it all the time.

  2. Anonymous on November 6th, 2008 8:14 am

    +1 for you thanks

  3. Igor on November 6th, 2008 10:58 am

    Men! thank you so much!

    It’ll be nice that this plugin work with Terminator ;-)

  4. topyli on November 6th, 2008 12:04 pm

    This may be a nice way to open terminals quickly (if you don’t like keyboard shortcuts), but it does break the original purpose of nautilus-open-terminal: opening a terminal in a specific directory from the context menu of a folder in nautilus.

  5. Paulo Silva on November 6th, 2008 12:09 pm

    i normally use a nautilus script for this:

    #!/bin/sh
    # open terminal here - Chris Picton, Martin Enlund, Christophe Combelles - GPL
    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" -a ! -d "$base/$1" ]; do shift; done
    dir=”$base/$1″
    fi
    gnome-terminal –working-directory=”$dir”

    this way allows you also, for example, for choosing which terminal emulator you want instead of gnome-terminal, like xterm or any other…

Leave a Comment




    Subscribe to the RSS feed!


    subscribe to the ubuntu tutorials RSS feed

    Ubuntu Tutorials Fundraiser


    Please Donate to
    Server Improvement

    Target amount: USD1,000.00
    Total Donations: USD328.00
    Amount Needed: USD672.00

    Thank you for your support!

    Click to Donate

    Polls



  • Blogroll

  • Ads by Google