6

My terminal always opens in home directory no matter where I open it. I also tried opening another terminal in the different directory but it's not working

gnome-terminal --working-directory=Downloads
gnome-terminal --working-directory Downloads
gnome-terminal --working-directory /home/avil/Downloads

I have also reinstalled both open in terminal extension and gnome-terminal but it's still not workingenter image description here

5 Answers5

3

First launch terminal go to Edit -> Profile Preferences -> Command and uncheck the option saying Run a custom command instead of my shell. It will not working with Desktop, but if you're browsing the Desktop as a folder inside nautilus, it will works fine.

1

I don't have this problem with Ubuntu 16.04 and only have 19.04 installed on another partition which I haven't upgraded to 19.10 yet to test.

Your problem does sound like this one though:

Please read the entire Q&A but to summarize the answer:

You need to install gnome-terminal-nautilus or create a custom script.

Then the follow up answer:

ok, solved, I have change execute command in profile in to gnome-shell. Not very intuitive

1
  • Open terminal
  • Go to Preferences
  • To your profile of the terminal(if you don't have any, create one)
  • In the menu of profile go to Command
  • Preserve working directory make it Always This fixed for me. Check the picture for more details.

If you want to open terminal in folder with command keys than :
shift + F10 E
or
Right click with mouse than press E

enter image description here

0

According to this answer How to add "Open terminal here" to Nautilus' context menu?

If you have a up to 15.04 Ubuntu distro version you have to install nautilus-open-terminal package. In my 19.10 Ubuntu I can't find it, though, because it is already included since version 15.10.

You could also try to reinstall nautilus, after updating your system, if you have a newer distro with sudo apt install --reinstall nautilus command.

thsdsdev
  • 431
  • 3
  • 11
0

There's an "Open in Terminal" command in the context menu of any folder in Nautilus. Right-click on the folder and choose the Open in Terminal option (between Revert to Previous Version... and Star.

ox15
  • 41