Postby sborrill » 21 Dec 2005 09:39
But if you don't want to do that and you don't want to run it from a tty, you are stuffed. I just want to play a streaming video when a user clicks on an icon.
For instance, "vlc -I dummy udp:" will leave you with a dead background process if the window is closed. You need to find it and kill it. This seems like a bug to me.
"echo | vlc -I rc --rc-host 127.0.0.1:1000 --rc-fake-tty udp:" isn't really any better (the echo is to force it not to be a tty when testing from a command line). The process runs at 100% CPU unless there's a connection to the socket (the same is true of --rc-unix). This has been reported elsewhere on the forums, but there was no response.
The best I can come up with is to launch vlc with rc via a socket (as abive) and then immediately start a wrapper script to connect to that socket. The wrapper then has to watch out for hints like "status-change (stop state: 0)" and issue a quit. As you can guess, this is a hack. :-/