Original Post
I'm writing a program that's ultimate goal is to launch another program with a filename. It is a fullscreen menu of filenames, basically, and when you select one i call the system command to execute a command line program with the filename. This is being done on a Debian PC with the GNU compiler, with both programs using SDL to set the video mode and draw to the screen. My program initially sets the video mode to 640x480x32, and the program i launch uses that also. I have a state machine in the file selector program which enters an idle loop after launching the program. I was hoping that by just calling the command line program it would start on top of my program, leaving mine idle in the background, and not need to change video modes. Instead, it hangs and i have to close it down. What would be the best method for accomplishing this, then?