3 #define DBUS_COMPILATION /* cheat and use dbus-sysdeps */
4 #include <dbus/dbus-sysdeps.h>
5 #include <dbus/dbus-spawn.h>
6 #undef DBUS_COMPILATION
10 setup_func (void *data)
12 printf ("entering setup func.\n");
16 main (int argc, char **argv)
24 fprintf (stderr, "You need to specify a program to launch.\n");
29 argv_copy = dbus_new (char *, argc);
30 for (i = 0; i < argc - 1; i++)
31 argv_copy [i] = argv[i + 1];
32 argv_copy[argc - 1] = NULL;
34 if (!_dbus_spawn_async_with_babysitter (NULL, argv_copy, setup_func, NULL, &error))
36 fprintf (stderr, "Could not launch application: \"%s\"\n",