Can I add “open in terminal” to the right-click mouse menu in Lubuntu?

In vanilla Ubuntu, there is a quite useful application called Nautilus-open-terminal, which allows the user to open the terminal in any folder by simply right-clicking and selecting "Open in terminal".

Lubuntu uses PCManFM, not Nautilus, so installing this program would be useless. Is there another way to achieve this right-click option?


Solution 1:

Well, given that Lubuntu is thought of as a "lighter" distro, we'll find quite a few favorite features totally missing or not where we'd expect them to be. In this specific case, if you navigate to a particular folder in PCManFM, please press F4 to open a terminal in the current folder. (You can see the F4 option and others such as "Open Current Folder as Root" in the Menu, Tools dropdown of PCManFM.)

This doesn't mean that there isn't a way to add the "open terminal here" to PCManFM's right-click menu. But I don't know of one. Instead, I've installed Thunar, the file manager by default in Xubuntu, and that does have the option you want along with useful things like Custom actions.

Solution 2:

Edit (2015-05-06): Technically, as of when this answer was originally answered, the answer is "No, you cannot add this functionality in any way". However, this may mean I simply do not know if there is a way.

Ah, I finally noticed how PCManFM does it while watching a video review of said OS.

To open a terminal in a folder, simply move "outside" the folder, right-click on said folder, and the option to open folder in terminal will be in the right-click menu.

For example, say I want to open a terminal in my "Downloads" folder:

  1. Move "outside" or "above" the folder, which in this case would be my home folder, /home/lubuntuUsername
  2. Right-click on the "Downloads" folder
  3. Select "Open in Terminal"

After following these steps, a terminal should open, with the path set as lubuntuUsername@computerName:~/Downloads$

Solution 3:

According to Add Open Folder as Root to PCMan File Manager's context menu , you can create terminal.desktop in ~/.local/share/file-manager/actions/

And add content like this

[Desktop Entry]
Type=Action
Tooltip=Open Terminal
Name=Open Terminal
Profiles=profile-one;
Icon=utilities-terminal


[X-Action-Profile profile-one]
MimeTypes=inode/directory;
Exec=deepin-terminal -w %f
Name=Default profile

I use Deepin Terminal so my Exec is deepin-terminal -w %f. You should change this if you use other terminal. For example, you can use gnome-terminal --working-directory %f for Gnome Terminal.

Solution 4:

Out of the box functionally does not support this currently.

However you can do this in one simple key stroke F4

Solution 5:

No you cannot access it via right click method. Alternative approach is to:

  • Go to that folder you want to open

    • click on the 'Tools' menu.

    • There is an option to 'Open Current Folder In Terminal'

alternatively you can go to that directory and use f4

i assume you are using PcManFM, the default FM