I'm developing a program that has a button. When pressed, I want to open a terminal that runs:
sudo apt-get update
I'm using:
os.system("gnome-terminal -e 'sudo apt-get update'")
This works fine. The only problem is that when the update is finished, the terminal closes. What can I do to leave the terminal open?