Ubuntu – add “open in terminal” to the right-click mouse menu in Lubuntu

lubuntumenumousepcmanfm

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?

Best Answer

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.