转载自:https://www.cnblogs.com/lantor/p/15719635.html

首先,创建actions目录

# 创建actions目录
mkdir ~/.local/share/file-manager/actions/ -p && cd ~/.local/share/file-manager/actions/

之后,新建terminal.desktop

# 创建 ~/.local/share/file-manager/actions/terminal.desktop 文件,输入以下内容,注销登录,再次进入就有了右键菜单
echo "[Desktop Entry]
Type=Action
Tooltip=在此处打开终端
Name=在此处打开终端
Profiles=profile-one;
Icon=utilities-terminal

[X-Action-Profile profile-one]
MimeTypes=inode/directory;
Exec=qterminal -w %f
Name=Default profile" > terminal.desktop

重新注销登录即可。