g_spawn_async_with_pipes problems
- From: Neil Hodge <neh attbi com>
- To: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: g_spawn_async_with_pipes problems
- Date: 14 Feb 2003 19:12:09 -0800
All:
I am just setting up some test code to see if I can get
g_spawn_async_with_pipes working, but I can't seem to make it work.
Here is the code:
gchar **argv;
GError *err = NULL;
*(argv+0) = g_strdup_printf("/usr/bin/xmms");
*(argv+1) = g_strdup_printf("-p");
*(argv+2) =
g_strdup_printf("\"/home/nhodge/data/music/essentialmix/2001/Essential
Mix 2001-10-27 - Fergie, Paul Oakenfold, Live from One Live,
Birmingham.mp3\"");
if (g_spawn_async_with_pipes(NULL,
argv,
NULL,
G_SPAWN_FILE_AND_ARGV_ZERO,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
&err)) {
printf("no g_spawn error\n");
} else {
printf("yes g_spawn error\n");
printf("error code => %d\n", err->code);
g_warning("Error: %s\n", err->message);
g_error_free(err);
}
And here is the output:
yes g_spawn error
error code => 19
** (gnoii2:4499): WARNING **: Error: Failed to execute child process
"/usr/bin/xmms" (Bad address)
Any ideas what my problem is??? Thanks.
Neil
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]