Add "run in terminal" option in Nautilus actions configuration tool

In nautilus-actions tool, go to Edit > Preferences > Runtime Execution. In the "command pattern" field, enter: gnome-terminal -x sh -c COMMAND

Then your commands/scripts will execute in the terminal just fine. Hope this helps someone!


Add a new action in Nautilus Actions Configuration Tool, called "Run in Terminal".

The relevant command is simple:

gnome-terminal -x %f

So, add that under Command tab

enter image description here

To always keep the terminal open when running this action, use a Gnome Terminal profile with that setting: In gnome-terminal, Edit-Preferences, select 'Profiles' tab, add new profile and call it "hold", and under 'Command' tab check to keep it open:

enter image description here

then add --profile=hold to the gnome-terminal parameters

enter image description here

(On how to add that setting in other terminal emulators, see THIS answer.)

Then, under Mimetypes tab, add application/*.

enter image description here

Be sure that under the 'Action' tab of Nautilus Actions Configuration Tool, you have selected the setting for displaying the option in context menu of selection.

enter image description here

Save.