Commit 62f348b0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Do not print start banner if stderr is not a TTY.

The user is not going to see the banner, and this tends to clutter
error logs (X server, cron jobs...) - not only on MacOS.
parent 61d342e1
......@@ -121,11 +121,11 @@ int main( int i_argc, const char *ppsz_argv[] )
setlocale (LC_ALL, "");
#ifndef __APPLE__
/* This clutters OSX GUI error logs */
fprintf( stderr, "VLC media player %s (revision %s)\n",
libvlc_get_version(), libvlc_get_changeset() );
#endif
if (isatty (STDERR_FILENO))
/* This message clutters error logs. It is print it only on a TTY.
* Forunately, LibVLC prints version infos with -vv anyhow. */
fprintf (stderr, "VLC media player %s (revision %s)\n",
libvlc_get_version(), libvlc_get_changeset());
sigset_t set;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment