Ok, Hi everyone,
I explain to you,
I make a little program for automatize tasks as downlaod, install and start software, a kind og all in one.
Some softwares must be launch in the terminal, as Audacity for example, it is no a problem but i would like to know if it's possible to start Audacity in silent mode, run the terminal in background.
I can start Audacity directly in my program but that's not what I want, while the software runs, i can't use my program, that's the reason that i launch it in an other terminal.
Here is a part of code :
Thanks for your help and happy New Year :D
I explain to you,
I make a little program for automatize tasks as downlaod, install and start software, a kind og all in one.
Some softwares must be launch in the terminal, as Audacity for example, it is no a problem but i would like to know if it's possible to start Audacity in silent mode, run the terminal in background.
I can start Audacity directly in my program but that's not what I want, while the software runs, i can't use my program, that's the reason that i launch it in an other terminal.
Here is a part of code :
if tool_choice == "01": if path.isfile('/usr/bin/audacity'): print("\n\033[1;34m AUDACITY\033[1;m start >> \033[1;36mLoading\033[1;m...") sleep(1) Popen(['xterm', 'audacity']) else: print("\n\033[1;34m AUDACITY\033[1;m is not installed on your system...") audacity_inst = input(" Do you want to install it (y/n) ? ").lower() if audacity_inst == "y": print("\n\033[1;34m AUDACITY\033[1;m installation >> \033[1;35mIn progress...\033[1;m\n") system('sudo apt install audacity -y && sudo apt update') sleep(1) print("\n\033[1;34m AUDACITY\033[1;m installation >> \033[1;32mDone !\033[1;m") sleep(2) elif audacity_inst == "n": print("\n\033[1;34m AUDACITY\033[1;m installation >> \033[1;31mCancelled...\033[1;m\n") sleep(2) else: print("\n\033[1;31m ERROR !! Wrong choice.. Please, retry...\033[1;m") sleep(2)My request concerns specifictly the part : "Popen(['xterm', 'audacity'])", I think this is here that's the code must be modfiy. I tried several options but nothing worked
Thanks for your help and happy New Year :D
(Dec-26-2019, 07:41 AM)DKRoots Wrote: Ok, Hi everyone, I explain to you, I make a little program for automatize tasks as downlaod, install and start software, a kind of all in one. Some softwares must be launch in the terminal, as Audacity for example, it is not a problem but I would like to know if it's possible to start Audacity in silent mode, run the terminal in background. I can start Audacity directly in my program but that's not what I want, while the software runs, i can't use my program, that's the reason that I launch it in an other terminal. Here is a part of code :if tool_choice == "01": if path.isfile('/usr/bin/audacity'): print("\n\033[1;34m AUDACITY\033[1;m start >> \033[1;36mLoading\033[1;m...") sleep(1) Popen(['xterm', 'audacity']) else: print("\n\033[1;34m AUDACITY\033[1;m is not installed on your system...") audacity_inst = input(" Do you want to install it (y/n) ? ").lower() if audacity_inst == "y": print("\n\033[1;34m AUDACITY\033[1;m installation >> \033[1;35mIn progress...\033[1;m\n") system('sudo apt install audacity -y && sudo apt update') sleep(1) print("\n\033[1;34m AUDACITY\033[1;m installation >> \033[1;32mDone !\033[1;m") sleep(2) elif audacity_inst == "n": print("\n\033[1;34m AUDACITY\033[1;m installation >> \033[1;31mCancelled...\033[1;m\n") sleep(2) else: print("\n\033[1;31m ERROR !! Wrong choice.. Please, retry...\033[1;m") sleep(2)My request concerns specifictly the part : "Popen(['xterm', 'audacity'])", I think this is here that's the code must be modfiy. I tried several options but nothing worked Thanks for your help and happy New Year :D