3

On Ubuntu versions prior to 19.04 there used to be an "Open terminal" menu item in the Nautilus context menu. In 19.04 this changed to "Open in terminal" and I have to manually cd back home from "Desktop" where it starts, not what I want. There are plenty of suggestions to this, e.g. putting a "cd" at the end of the .bashrc file. I think this is a bit of an overkill - I simply want to have a replica of Ctrl-Alt-T on the convenient desktop right-click menu. I can't even find the .desktop file that creates this menu item! (I've looked in /usr/share/applications and ~/.local/share/applications, but nothing seems to create a terminal window). This should be simple, but it annoys me I can't solve this!

Addition: Oh, let me specify, I'm using the Gnome desktop, forgot to mention that!

2
  • 1
    Why not just use the Ctrl-Alt-T combo you mentioned? Sounds lot more convenient to me. BTW on Ubuntu 19.04 icons in desktop are managed by a GNOME extension instead of Nautilus. I'm quite sure the "Open in terminal" option is also provided by the same extension.
    – pomsky
    May 14, 2019 at 18:41
  • 2
    @pomsky You are so right, but poor eyesight and less-than-perfect dexterity unfortunately makes it a bit awkward for me to change from mouse to keyboard too often. I'll look more into these estensions now, but I must admit some of them are poorly written and actually cause a crash sometimes. I had to disable many of those I had installed to be able to upgrade to 19.04 for example ;) May 14, 2019 at 19:06

4 Answers 4

1

The right-click desktop, "Open in Terminal" option is in recent Ubuntu versions provided by the Gnome Shell desktop extension because it is not anymore nautilus that manages the desktop. This option is however consistent with the same right-click option in Files (nautilus).

Many users will prefer the current behaviour, where the right-click context menu opens the terminal in the current folder. The context menu is also aimed for that: have an action that applies to the object you are working with. In this case, have an action that opens the terminal in the folder you are currently working in. By extension, it is normal that a right-click on your desktop would open the terminal in the Desktop folder so you immediately can work with the files on your desktop.

If you just want a standard launching behaviour, there are enough alternatives.

  • An icon on the Dock can give you convenient one-click access to a terminal opening in your home folder - you do not even need to see the desktop for this
  • The build-in Alt+Ctrl+T is by far the quickest way to launch quickly launch a terminal opening in your home folder, anytime, anywhere.
  • You could remove nautilus-extension-gnome-terminal to remove this right-click option that does not behave like you prefer, and instead add a custom right-click menu option through a nautilus script (very easy to do) or a nautilus python script (see second part of the accepted answer, less easy, but integrates better). (This also answers your query on how this right-click menu item is implemented, not through a .desktop file, but through a nautilus extension).
0

Just for fun - there is NO problem setting up a "terminal" icon on the Gnome desktop, and I'm as happy as can be of course. I like using the mouse for these things ;)

0

Solved it by sudo apt install nautilus-extension-gnome-terminal. Some distributions of ubuntu just doesn't come with this, mine is unofficial ubuntu arm64 20.04

0

To those who still encounter problems in 2022:

The problem is that the open terminal feature had been implemented in gnome-shell; all you need to do is:

sudo apt install gnome-shell-extension-desktop-icons -y

Then go to the Extensions app and turn on "Desktop Icons", you will immediately be able to right-click open a terminal.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .