When running pygame in Ubuntu a terminal is opened along with the pygame window. I want to get rid of the terminal. I can launch pygame with nohup and &:

$ nohup python3 mygame.py & 

This allows the terminal to be closed, but it does not prevent it from being opened in the first place.

Is there a way to run pygame without a terminal being opened?

1 Answers

J_H On

The OP explains that one should create a desktop shortcut, and the the terminal goes away.