LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-06-2012, 07:44 PM   #1
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Rep: Reputation: 47
Nautilus-open-terminal problem


I installed nautilus on xfce4 and then nautilus-open-terminal. Initially it used to open xterm. I changed this to xfterm4 using the commands:
Code:
$ gsettings set org.gnome.desktop.default-applications.terminal exec xfterm4
$ gsettings set org.gnome.desktop.default-applications.terminal exec-arg "'--hold -e'"
Now, terminal opens but it is in the home folder rather than the folder that is being displayed in nautilus, which defeats the very purpose for which it was installed. Further, I cannot now return back to xterm or the original settings. Could someone guide me on how to set that the terminal opens in the folder that nautilus is displaying. Alternatively, how to reset the original settings. I even tried uninstalling nautilus and nautilus-open-terminal and reinstalling them but still the problem persists.

Apparently, exec-arg (second line above) needs to be set in accordance with /usr/bin/xfterm4 script, which is as follows:
Code:
#!/bin/sh

if [ "$1" = "-e" ]; then
	if [ -n "$2" ]; then
		shift
		ESTRING="$@"
	else
		shift
	fi
fi	

if [ -d "$*" ]; then
	cd "$*"
elif [ -x "$*" ]; then
	cd `dirname "$*"`
	ESTRING="`which pauseme`"
	MSTRING="$*"
elif [ -f "$*" ]; then
	ESTRING="`which less`"
	MSTRING="$*"
elif [ "`echo $* | grep "http:/"`" -o "`echo $* | grep "ftp:"`" ]; then
	# This requires lynx or links. If you don't have it, don't drop URLs.
	if which lynx >/dev/null 2>&1; then
		ESTRING="`which lynx`"
	elif which links >/dev/null 2>&1; then
		ESTRING="`which links`"
	fi
	MSTRING="$*"
fi

if [ x"$ESTRING" = x"" ]; then
	exec exo-open --launch TerminalEmulator
elif [ x"$MSTRING" = x"" ]; then
	exec exo-open --launch TerminalEmulator $EXEC"$ESTRING"
else
	exec exo-open --launch TerminalEmulator $EXEC"$ESTRING" "$MSTRING"
fi

exit 0
I have also gconf-editor. The nautilus-open-terminal settings there are minimal.
Thanks for your help.

Last edited by rng; 04-06-2012 at 07:47 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Nautilus Terminal 1.0 Released With Support For Nautilus 3.x (Terminal Embedded Into Nautilus) LXer Syndicated Linux News 0 10-18-2011 08:20 AM
LXer: Nautilus Terminal Embeds A Terminal Into Nautilus (Dolphin Style) LXer Syndicated Linux News 0 09-11-2010 12:50 PM
nautilus-open-terminal in reverse? TokyoYank Linux - Software 2 07-18-2006 02:37 AM
how do I open a nautilus window when I'm in a terminal cjennings Linux - General 2 07-27-2004 12:41 PM
How to open a terminal in a special folder under nautilus? kevinqian Linux - Newbie 1 12-04-2003 07:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration