4 #include <dbus/dbus-sysdeps.h>
5 #include <dbus/dbus-spawn.h>
9 setup_func (void *data)
11 printf ("entering setup func.\n");
15 main (int argc, char **argv)
23 fprintf (stderr, "You need to specify a program to launch.\n");
28 argv_copy = dbus_new (char *, argc);
29 for (i = 0; i < argc - 1; i++)
30 argv_copy [i] = argv[i + 1];
31 argv_copy[argc - 1] = NULL;
33 if (!_dbus_spawn_async_with_babysitter (NULL, argv_copy, NULL, setup_func, NULL, &error))
35 fprintf (stderr, "Could not launch application: \"%s\"\n",