# HG changeset patch # User Cristi Magherusan # Date 1200534055 -7200 # Node ID f6da5b8d401e86712ccd090cffb3dc24ba980aab # Parent 7ebcd1d559c6e71185cfc32b52c8c0d68908ace4 made it ignore -psn_0_* arguments, passed by MacOS X diff -r 7ebcd1d559c6 -r f6da5b8d401e src/audacious/main.c --- a/src/audacious/main.c Wed Jan 16 13:41:06 2008 +0100 +++ b/src/audacious/main.c Thu Jan 17 03:40:55 2008 +0200 @@ -1383,9 +1383,16 @@ if (error != NULL) { - g_printerr(_("%s: %s\nTry `%s --help' for more information.\n"), - argv[0], error->message, argv[0]); - exit(EXIT_FAILURE); + if(error->message) + { /* checking for MacOS X -psn_0_* errors*/ + char* s = g_strrstr(error->message,"-psn_0_"); + if(!s) + { + g_printerr(_("%s: %s\nTry `%s --help' for more information.\n"), + argv[0], error->message, argv[0]); + exit(EXIT_FAILURE); + } + } } if (!gtk_init_check_ok) {