Mercurial > audlegacy
changeset 4193:f6da5b8d401e
made it ignore -psn_0_* arguments, passed by MacOS X
author | Cristi Magherusan <majeru@atheme.org> |
---|---|
date | Thu, 17 Jan 2008 03:40:55 +0200 |
parents | 7ebcd1d559c6 |
children | 1ee48928656b |
files | src/audacious/main.c |
diffstat | 1 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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) {