Mac OS X confusion
Christophe Massiot
massiot at via.ecp.fr
Wed Jun 19 00:28:46 CEST 2002
I'm a little confused for a bug in the OS X port. The problem occurs
when launching VLC with for instance :
./vlc.app/Contents/MacOS/vlc --memcpy memcpy
It then says :
intf: added `memcpy' to playlist
Which is the problem (it also happens with --mpeg-adec, --ac3-adec,
etc.). I tracked it down. It doesn't happen with --intf dummy.
Apparently, Mac OS X, when a program is launched from the
command-line, and the program has a GUI, automagically goes into the
file menu, selects open, and passes the names of the arguments
(except those which begin with -- or -, as it correctly supposes they
are switches, but it doesn't take into account optional arguments).
So everytime we launch VLC via the command-line, we first pass the
command-line and manage playlist, and then we have a bogus "open
file" command passed, with very weird arguments.
I'm confused about what to do here. We must take into account the
command-line (to read switches), and I don't know how to detect the
bogus "open file". Any idea ?
--
Christophe Massiot.
--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
More information about the vlc-devel
mailing list