I run the code in python3: os.system(""" gnome-terminal --tab --title="tab 2" --command="bash -c 'cd /etc; $SHELL'" """)
, it opens terminal with one tab. How to make one more command open a new tab in an already open terminal
- The question does not apply to Python, nor to Ubuntu, nor to bash. The team shown by you personally opens a new tab for me in the already open terminal, so the question is not clear - andreymal
- Although in the newer versions of gnome-terminal there is in fact no option - tab - andreymal
- It is necessary in this (already open) terminal to add another tab, just not in the same command, but another one, for example, in 5 minutes to add - diego costa
- onecan be a different way . wmctrl call is optional. - aleksandr barakin
- A good way, but if I use the graph in the program, then how will it switch to the terminal and create a tab there? The code from the example takes the active window, but it is necessary that the terminal be active - diego costa
|