#!/bin/bash
gnome-terminal --command='/home/user23/bin/n-youtube-dl "$1"'
I want to pass the argument passed to this script to the other script started in the terminal. But this starts endless gnome terminals.
Can you explain why that is and how to make this work?
I am running zsh has my main shell if that matters, the terminal starts the script in zsh then I guess.
Update:
#!/bin/bash
gnome-terminal --command='echo "WTF"'
read -p "Press [Enter] key"
Is just closing the term faster then I can see WTF. Isn't it supposed to stop? Same goes for replacing the WTF
with $1
again, no respawn.
/home/user23/bin/n-youtube-dl
look like?n-youtube-dl
is that python script and not actually your wrapper itself?