Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 18696  / 2 Years ago, thu, september 8, 2022, 6:12:01

I have a Python script which I would like to execute at every startup.
I can run it by adding this to the startup applications:



python3 /path/to/script.py


That works, but it doesn't open a terminal window, so I can't see the program's output.
How could I make it open a terminal window and execute the script in there?



Note: I get the window to stay open with input(' ') at the end of the Python script.
Thanks!


More From » 12.04

 Answers
1

This one should work:



gnome-terminal -e "python3 /path/to/script.py"

[#29226] Saturday, September 10, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
olouredping

Total Points: 259
Total Questions: 100
Total Answers: 121

Location: New Caledonia
Member since Wed, Sep 15, 2021
3 Years ago
olouredping questions
;