Lets say I want to execute a simple Python script from Nautilus, the default file manager of GNOME:
#!/usr/bin/python3
print("Hello")
Of course the aim is to interact with selected files in Nautilus, but I want to keep it simple.
I save the script to the folder ~/.local/share/nautilus/scripts/
and then I can execute it from the right click context menu:
How can I execute this nautilus script inside gnome-terminal and keep the terminal opened at the end of the script?