Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Recently i changed to lxde on Ubuntu. And after switching it changed my x-terminal-emulator to lxterm.

My script was doing the following:

Go through a for loop and open a new terminal window and then run a script in that terminal. It would open multiple terminals at the same time running that script in all the different windows.

After switching to lxde it will loop through and wait for each terminal window to finish the script before the next terminal window launches. I want it to do what it was doing.

I fixed this issue by changing my x-terminal-emulator back to the gnome-terminal. Now it works fine. HOWEVER, this is a script system that a few people use and they are all using different environments and terminal emulators. How can i make sure this works for all the different terminal emulators or at least for xterm or whatever the one EVERYONE would have.

Thanks


Code snippet:

for blah in something
do
    x-terminal-emulator -e bash my_script.sh
done
share|improve this question
    
See this question. –  terdon Sep 21 '13 at 4:45

1 Answer 1

up vote 5 down vote accepted

This should do

for blah in something
do
    x-terminal-emulator -e bash my_script.sh &
done
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.