[SOLVED] last step to make script fully work
by Arch4GoodieLike from LinuxQuestions.org on (#5RC64)
Code:#!/bin/bash -e
#path to select.sh
SelectPath="~/startup-script/"
# Run game.py
gnome-terminal -- sh -c "python3 game.py; bash"
# Wait until the terminal's child exist
wait
exec "${SelectPath}"./script.shonly thing left to include now is to make the gnome-terminal that launched the game to close once the game is closed.
#path to select.sh
SelectPath="~/startup-script/"
# Run game.py
gnome-terminal -- sh -c "python3 game.py; bash"
# Wait until the terminal's child exist
wait
exec "${SelectPath}"./script.shonly thing left to include now is to make the gnome-terminal that launched the game to close once the game is closed.